Altova MapForce 2025 Enterprise Edition

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

mf-func-round-precision

 

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.

© 2018-2024 Altova GmbH