Utils.floor()

Return the number given as first parameter floored 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 floor = Utils.floor(2.46974,2);
console.log(floor); //(2.46)