1.1.3 • Published 1 year ago

@lou.codes/math v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Coverage License NPM Version Open Issues Size

🧮 Precise basic math operations. Using this library, adding 0.1 to 0.2 will give you 0.3, which might sound like nothing, but that's not the default behavior of JavaScript.

Usage

šŸ“¦ Node

Install @lou.codes/math as a dependency:

pnpm add @lou.codes/math
# or
npm install @lou.codes/math
# or
yarn add @lou.codes/math

Import it and use it:

import { chain } from "@lou.codes/math";

chain(0.2).add(0.1); // 0.3 šŸŖ„

šŸ¦• Deno

Import @lou.codes/math using the npm: prefix, and use it directly:

import { chain } from "npm:@lou.codes/math";

chain(0.2).add(0.1); // 0.3 šŸŖ„

šŸŒŽ Browser

Import @lou.codes/math using esm.sh, and use it directly:

<script type="module">
	import { chain } from "https://esm.sh/@lou.codes/math";

	chain(0.2).add(0.1); // 0.3 šŸŖ„
</script>

Useful links

1.1.1

1 year ago

1.1.0

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago