Math Functions

Qualified Name Type Release

apoc.math.round

apoc.math.round(value,[prec],mode=[CEILING,FLOOR,UP,DOWN,HALF_EVEN,HALF_DOWN,HALF_UP,DOWN,UNNECESSARY])

Function

APOC Core

apoc.math.maxLong

apoc.math.maxLong() | return the maximum value a long can have

Function

APOC Core

apoc.math.minLong

apoc.math.minLong() | return the minimum value a long can have

Function

APOC Core

apoc.math.maxDouble

apoc.math.maxDouble() | return the largest positive finite value of type double

Function

APOC Core

apoc.math.minDouble

apoc.math.minDouble() | return the smallest positive nonzero value of type double

Function

APOC Core

apoc.math.maxInt

apoc.math.maxInt() | return the maximum value an int can have

Function

APOC Core

apoc.math.minInt

apoc.math.minInt() | return the minimum value an int can have

Function

APOC Core

apoc.math.maxByte

apoc.math.maxByte() | return the maximum value an byte can have

Function

APOC Core

apoc.math.minByte

apoc.math.minByte() | return the minimum value an byte can have

Function

APOC Core

apoc.number.romanToArabic

apoc.number.romanToArabic(romanNumber) | convert roman numbers to arabic

Function

APOC Core

apoc.number.arabicToRoman

apoc.number.arabicToRoman(number) | convert arabic numbers to roman

Function

APOC Core

The following returns the maximum long value:
RETURN apoc.math.maxLong() AS output;
Table 1. Results
Output

9223372036854775807

The following returns the minimum long value:
RETURN apoc.math.minLong() AS output;
Table 2. Results
Output

-9223372036854775808

The following returns the maximum double value:
RETURN apoc.math.maxDouble() AS output;
Table 3. Results
Output

1.7976931348623157e+308.0

The following returns the minimum double value:
RETURN apoc.math.minDouble() AS output;
Table 4. Results
Output

5e-324

The following returns the maximum int value:
RETURN apoc.math.maxInt() AS output;
Table 5. Results
Output

2147483647

The following returns the minimum int value:
RETURN apoc.math.minInt() AS output;
Table 6. Results
Output

-2147483648

The following returns the maximum byte value:
RETURN apoc.math.maxByte() AS output;
Table 7. Results
Output

127

The following returns the minimum byte value:
RETURN apoc.math.minByte() AS output;
Table 8. Results
Output

-128