floor.php
Table of Contents
Functions
- floor() : string
- Return the integer closest but not greater than the given value.
Functions
floor()
Return the integer closest but not greater than the given value.
floor(string|int|float $value) : string
This helper wraps the ArangoDB AQL function FLOOR(value) which rounds down
a number to the nearest integer that is less than or equal to the value.
Example AQL usage:
FLOOR(4.1) // returns 4
FLOOR(4.9) // returns 4
FLOOR(-4.1) // returns -5
FLOOR(doc.price) // rounds down the price
Parameters
- $value : string|int|float
-
Any number to round down.
Tags
Return values
string —The formatted AQL expression.