apoc.number.exact.div

Function APOC Core

apoc.number.exact.div(stringA,stringB,[prec],[roundingModel]) - return the division’s result of two large numbers

Signature

apoc.number.exact.div(stringA :: STRING?, stringB :: STRING?, precision = 0 :: INTEGER?, roundingMode = HALF_UP :: STRING?) :: (STRING?)

Input parameters

Name Type Default

stringA

STRING?

null

stringB

STRING?

null

precision

INTEGER?

0

roundingMode

STRING?

HALF_UP

Usage Examples

RETURN apoc.number.exact.div('550058444','662557', 18, 'HALF_DOWN') as output;
Table 1. Results
output

"830.205467605051339"