1.1.3 • Published 6 years ago

@syarhei/math-conversion v1.1.3

Weekly downloads
1
License
ISC
Repository
gitlab
Last release
6 years ago

Mathematical library

Description:

Adjust array's values so that sum of numbers is equal to integer value.

Example:

import { convertSumToInteger } from "@syarhei/math-conversion";

const sum: number = 1;  // expected sum of all values

let a: number = 1, b: number = 2, c: number = 3;
([a, b, c] = convertSumToInteger(sum, a, b, c));

console.log(a + b + c === sum);  // true
1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago