round
With this property you can round the value up, down or to a certain number of decimals. For each roundType the according PHP function will be used.
The value will be converted to a float value before applying the selected round method.
Properties
roundType
roundType
decimals
decimals
round
round
-
- Type
- boolean
- Default
- 0
Set round = 1 to enable rounding.
Examples
lib.number = TEXT
lib.number {
value = 3.14159
stdWrap.round = 1
stdWrap.round.roundType = round
stdWrap.round.decimals = 2
}
Copied!
This returns 3.
.