Rounds the input value to N decimal places, where N is the decimals argument.
Built-in, C++, C#, Java.
Argument |
Description |
---|---|
value |
Mandatory parameter. Provides the function's input value. |
decimals |
Mandatory parameter. Specifies the number of decimals to round to. |
Rounding the value 2.777777 to 2 decimals yields 2.78. Rounding the value 0.1234 to 3 decimals yields 0.123.