@syarhei/math-conversion
Math utils for different number's conversions
Last updated 2 years ago by syarhei .
ISC · Repository · Original npm · Tarball · package.json
$ cnpm install @syarhei/math-conversion 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.1.3                                ...           latest (2 years ago)

5 Versions

  • 1.1.3                                ...           2 years ago
  • 1.1.2                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 4
Last Day 0
Last Week 0
Last Month 3
Dependencies (3)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |