Skip to main content

@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

ParameterTypeDescription
valuenumberNumber that is rounded
decimalsnumberAmount of decimals to be used for rounding
Returns:

number