Utils.ceil()

Return the number given as first parameter ceiled with the number of decimals given as second parameter

Parameters

NameTypeDescription
1xnumber
2decimalsnumber

Return value

number

the result

Usage

import {Utils} from '@lcluber/type6js';

let ceil = Utils.ceil(2.42274,2);
console.log(ceil); //(2.43)