Floor (precision)
Logic name
Floor (precision)
Function
This logic rounds the input numeric value down according to the specified precision.
If the input numerical value is a negative value, the output numerical value is the largest value less than or equal to the specified number of digits.
Data type
|
Location |
Type |
|---|---|
|
First input handler |
Numeric |
|
Logic output |
Numeric |
Property
|
Category |
Property |
Description |
|---|---|---|
|
Required |
Precision |
Directly specify the number of digits after the decimal point for the calculation precision as a decimal. |
|
Comment |
Comment |
It does not affect the conversion processing. |
Example of logic use
Mapping definition
Logic settings and processing result
This logic rounds down the input data values to the specified decimal precision and outputs them.
Property settings
|
Property |
Setting Value |
|---|---|
|
Precision |
2 |
Input data
|
123.456 |
|
-123.456 |
|
654.321 |
Output data
|
123.45 |
|
-123.46 |
|
654.32 |