A JavaScript math library without floating-point rounding errors that includes support for Vectors, Matrices, and other geometric functions
@oneisland/math is available through the npm registry:
$ npm install @onesland/math
Creating a simple math example using @oneisland/math:
// Import the required operations from @oneisland/math
import { add } from '@oneisland/math';
// Add some number without rounding errors
const result = add(0.1, 0.2);
// Log out the result
console.log(`The result is: ${result}`);
The result is: 0.3
Check out the full documentation
Copyright (c) 2019-present, OneIsland Limited