apoc.number.exact.mul

Details

Syntax

apoc.number.exact.mul(stringA, stringB [, precision, roundingMode ])

Description

Returns the result of multiplying two given large numbers (using Java BigDecimal).

Arguments

Name

Type

Description

stringA

STRING

A string representation of a number to multiply by the second number.

stringB

STRING

A string representation of a number to multiply by the first number.

precision

INTEGER

The rounding precision. The default is: 0.

roundingMode

STRING

A precision rounding mode (UP, DOWN, CEILING, FLOOR, HALF_UP, HALF_DOWN, HALF_EVEN). The default is: HALF_UP.

Returns

STRING

Usage Examples

RETURN apoc.number.exact.mul('550058444','662557', 15, 'HALF_DOWN') as output;
Results
output

"364445072481308"