Skip to main content

RoundTask

Round the current running result to a set number of decimal places.

Input: The current running numerical result.

Returns: The running result rounded to a set number of decimal places.

Example: Round down the running resul to 8 decimal places

{
"roundTask": {
"method": "METHOD_ROUND_DOWN",
"decimals": 8
}
}


Fields

NameTypeDescription
 decimals

int32

The number of decimals to round to.

 method

The rounding method to use.

Enums

 Method

ValueNameDescription
 0METHOD_ROUND_UP

Round the result down.

 1METHOD_ROUND_DOWN

Round the result up.