export class Numbers { public static round ( num , decimals = 3 ) { return Math . round ( ( num + Number . EPSILON ) * Math . pow ( 10 , decimals ) ) / Math . pow ( 10 , decimals ) ; } public static ceil ( num , decimals = 3 ) { return Math . ceil ( ( num + Number . EPSILON ) * Math . pow ( 10 , decimals ) ) / Math . pow ( 10 , decimals ) ; } public static floor ( num , decimals = 3 ) { return Math . floor ( ( num + Number . EPSILON ) * Math . pow ( 10 , decimals ) ) / Math . pow ( 10 , decimals ) ; } }