neo4j/community — Issue #197: Mathematical functions in Cypher
Author: systay
Created: 2012-01-25 11:35:38+00:00
State: open
Labels: cypher, feature

Add the % modulo operator

ABS(number) - Returns the absolute value of a number.
SIGN(number) - Returns 1 if the number is positive, -1 if the number is negative and 0 if the number is zero.
MOD(number1, number2) - Returns the modulo of number1 and number2 (equivalent to {number1 % number2} in Java).
ROUND(number, decimal_places)
ROUND(number) - Rounds the number to 'n' decimal places. When no 'decimal_places' argument is provided the number is rounded to the nearest whole number.
POW(number1, number2) - Raises number1 to the power of number2.
SQRT(number) - Finds the square root of the number argument.