round-precision
Rounds the input value to N decimal places, where N is the decimals argument.

Languages
Built-in, C++, C#, Java.
Parameters
| Argument | Description | 
|---|---|
| value | Mandatory parameter. Provides the function's input value. | 
| decimals | Mandatory parameter. Specifies the number of decimals to round to. | 
Example
Rounding the value 2.777777 to 2 decimals yields 2.78. Rounding the value 0.1234 to 3 decimals yields 0.123.
See also Example: Read Data from Protocol Buffers.