Utils.ceil()
Return the number given as first parameter ceiled with the number of decimals given as second parameter
Parameters
Name | Type | Description | |
---|---|---|---|
1 | x | number | |
2 | decimals | number |
Return value
number
the result
Usage
import {Utils} from '@lcluber/type6js';
let ceil = Utils.ceil(2.42274,2);
console.log(ceil); //(2.43)