0.20.1 • Published 4 years ago

@terra-dev/big-math v0.20.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 years ago

@terra-dev/big-math

Math library for big.js

API

index.ts

export function min(...numbers: BigSource[]): Big {}

export function max(...numbers: BigSource[]): Big {}

export function floor(number: BigSource): Big {}

Spec

__tests__/big-math.test.ts

import { floor, max, min } from '@terra-dev/big-math';
import big from 'big.js';

describe('big-math', () => {
  test('should get the minimum / maximum numbers', () => {
    expect(min(10, '4', big('8')).toString()).toBe('4');
    expect(max(10, '4', big('8')).toString()).toBe('10');
    expect(floor(big('10.343434')).toString()).toBe('10');
  });
});
0.20.1

4 years ago

0.20.0

4 years ago

0.19.0

4 years ago

0.18.0

4 years ago

0.17.0

4 years ago

0.17.1

4 years ago

0.16.0

4 years ago

0.16.0-alpha.4

4 years ago

0.16.0-alpha.1

4 years ago

0.16.0-alpha.3

4 years ago

0.16.0-alpha.2

4 years ago

0.14.0

4 years ago

0.15.0

4 years ago

0.13.0

4 years ago

0.13.1

4 years ago

0.12.2

4 years ago

0.10.0

4 years ago

0.11.0

4 years ago

0.10.1

4 years ago

0.12.0

4 years ago

0.10.2

4 years ago

0.8.0

4 years ago

0.12.1

4 years ago

0.5.0

4 years ago

0.4.0

4 years ago

0.7.0

4 years ago

0.6.0

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago