Parameters, Value
Round down function returns the largest integer up to a certain numeric value.
Syntax:
- Format: floor(
<raw>
) - Parameters: see table below
- Value: ATTR (number)
Name | Category | Specification | Description |
---|---|---|---|
raw | ATTR(number) | / | Numeric value to be calculated |
Common Usage
Example: round down -45.2 and return the value after calculation
return floor(-45.2)
Example: find 10 @transfer
edges, return their amounts after rounding down
find().edges({@transfer}) as e
limit 10
return floor(e.amount)