RulePoint
- RulePoint 6.1.2
- All Products
truncate(number1,[number2],[num_digits])
Argument
| Required
Optional
| Description
|
---|---|---|
number
| Required
| The number you want to truncate.
|
number2
| Optional
| The number you want to truncate.
|
num_digits
| Optional
| The number specifying the precision of the truncation. The default value for num_digits is 0 (zero).
|
Parameter Input Options
| Datatype
|
---|---|
Event property
| Real number
|
Watchlist values
| Real number
|
when 1 stock s with truncate(s.value) as result=10 then response with body=”${result}”
Event Property Value
| Description
| Result
|
---|---|---|
s.value=10.9
| Truncates 10.9 by removing the fractional part of the number.
| 10
|