Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 828 Bytes

Math.ROUNDUP.md

File metadata and controls

32 lines (26 loc) · 828 Bytes

Math.ROUNDUP

The ROUNDUP function is established to round a number just like the same name excel function.

Sample

Math.ROUNDUP(5.5,0);		//6
Math.ROUNDUP(2.5,0);		//3
Math.ROUNDUP(1.6,0);		//2
Math.ROUNDUP(1.1,0);		//2
Math.ROUNDUP(1.0,0);		//1
Math.ROUNDUP(-1.0,0);		//-1
Math.ROUNDUP(-1.1,0);		//-2
Math.ROUNDUP(-1.6,0);		//-2
Math.ROUNDUP(-2.5,0);		//-3
Math.ROUNDUP(-5.5,0);		//-6

Math.ROUNDUP(1.2345,3);		//1.235

API

CallingReturning
Math.ROUNDUP ( num, digit )Number
ParametersTypeDescription
numNumberThe number to round.
digitNumberNumber of digits after the decimal point.