@williaminfante/ko-conversion

A list of utilities for converting amounts preventing rounding errors with javascript floats. This uses the big.js library.

Usage no npm install needed!

<script type="module">
  import williaminfanteKoConversion from 'https://cdn.skypack.dev/@williaminfante/ko-conversion';
</script>

README

Conversion

A list of utilities for converting amounts preventing rounding errors with javascript floats. This uses the big.js library.

Table of Contents

Background

A list of utilities for converting amounts preventing rounding errors with javascript floats. This uses the big.js library. Examples include converting from cents to dollars, converting from dollars to cents, and using convert cents to dollars in string format.

Usage

This requires the big.js library.

Contributing

Please don't hesitate to raise an issue or submit a PR to improve this project. Thanks!