@mapgear/geoapps-core > MathHelper > round
MathHelper.round() method
Round the number with the specified amount of decimals
Signature:static round(value: number, decimals?: number): number;
Parameters
Parameter | Type | Description |
---|---|---|
value | number | Number that is rounded |
decimals | number | Amount of decimals to be used for rounding |
number