You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Function cdm.base.math.RoundToPrecision rounds to the incorrect number of decimal places.
func RoundToPrecision: <"Round a rate to the supplied precision, using the supplied rounding direction">
inputs:
value number (1..1) <"The original (unrounded) number.">
precision int (1..1) <"The number of decimal digits of precision.">
roundingMode RoundingDirectionEnum (1..1) <"The method of rounding (up/down/nearest).">
output:
roundedValue number (1..1) <"The value to the desired precision">
The following examples show the function behaviour:
Function
cdm.base.math.RoundToPrecision
rounds to the incorrect number of decimal places.The following examples show the function behaviour:
RoundToPrecision(1023.123456789, 5, RoundingDirectionEnum -> NEAREST)
RoundToPrecision(1023.123456789, 5, RoundingDirectionEnum -> UP)
RoundToPrecision(1023.123456789, 5, RoundingDirectionEnum -> DOWN)
RoundToPrecision(1023.123456789, 0, RoundingDirectionEnum -> NEAREST)
RoundToPrecision(1023.1, 7, RoundingDirectionEnum -> NEAREST)
The text was updated successfully, but these errors were encountered: