数学函数
常见数学运算函数
| 限定名称 | 类型 |
|---|---|
|
函数 |
|
函数 |
|
函数 |
|
函数 |
|
函数 |
|
函数 |
|
函数 |
|
函数 |
|
函数 |
|
函数 |
示例
以下返回 long 类型的最大值
RETURN apoc.math.maxLong() AS output;
| 输出 |
|---|
9223372036854775807 |
以下返回 long 类型的最小值
RETURN apoc.math.minLong() AS output;
| 输出 |
|---|
-9223372036854775808 |
以下返回 double 类型的最大值
RETURN apoc.math.maxDouble() AS output;
| 输出 |
|---|
1.7976931348623157e+308.0 |
以下返回 double 类型的最小值
RETURN apoc.math.minDouble() AS output;
| 输出 |
|---|
5e-324 |
以下返回 int 类型的最大值
RETURN apoc.math.maxInt() AS output;
| 输出 |
|---|
2147483647 |
以下返回 int 类型的最小值
RETURN apoc.math.minInt() AS output;
| 输出 |
|---|
-2147483648 |
以下返回 byte 类型的最大值
RETURN apoc.math.maxByte() AS output;
| 输出 |
|---|
127 |
以下返回 byte 类型的最小值
RETURN apoc.math.minByte() AS output;
| 输出 |
|---|
-128 |