apoc.number.exact.toInteger
Function APOC Core
apoc.number.exact.toInteger(string,[prec],[roundingMode]) - return the Integer value of a large number
Signature
apoc.number.exact.toInteger(stringA :: STRING?, precision = 0 :: INTEGER?, roundingMode = HALF_UP :: STRING?) :: (INTEGER?)
Input parameters
Name | Type | Default |
---|---|---|
stringA |
STRING? |
null |
precision |
INTEGER? |
0 |
roundingMode |
STRING? |
HALF_UP |
Usage Examples
RETURN apoc.number.exact.toInteger('504238974', 5, 'HALF_DOWN') as output;
output |
---|
504238974 |
Was this page helpful?