apoc.math.round
Function APOC Core
apoc.math.round(value,[prec],mode=[CEILING,FLOOR,UP,DOWN,HALF_EVEN,HALF_DOWN,HALF_UP,DOWN,UNNECESSARY])
Signature
apoc.math.round(value :: FLOAT?, precision = 0 :: INTEGER?, mode = HALF_UP :: STRING?) :: (FLOAT?)
Usage Examples
RETURN apoc.math.round(1.783, 0, "HALF_UP") AS output;
output |
---|
2.0 |
RETURN apoc.math.round(1.783, 0, "DOWN") AS output;
output |
---|
1.0 |
Was this page helpful?