Check out v4 of the Fauna CLI
v4 of the Fauna CLI is now in beta. The new version introduces enhancements to the developer experience, including an improved authentication workflow. To get started, check out the CLI v4 quick start. |
Math
Math
methods and properties.
Properties
Property | Description |
---|---|
Get the Euler’s number mathematical constant (℮). |
|
String value representing infinity. |
|
String value representing Not-a-Number. |
|
Get the mathematical constant pi (π). |
Static methods
Method | Description |
---|---|
Get the absolute value of a number. |
|
Get the inverse cosine in radians of a number. |
|
Get the inverse sine in radians of a number. |
|
Get the inverse tangent in radians of a number. |
|
Round up a number. |
|
Get the cosine of a number in radians. |
|
Get the hyperbolic cosine of a number. |
|
Convert radians to degrees. |
|
Get the value of ℮ raised to the power of a number. |
|
Round down a number. |
|
Get the hypotenuse of a right triangle. |
|
Get the natural logarithm, base e, of a number. |
|
Get the base 10 logarithm of a number. |
|
Get the larger of two numbers. |
|
Get the arithmetic mean of an Array or Set of numbers. |
|
Get the smaller of the input parameter numbers. |
|
Get the value of a base raised to a power. |
|
Convert the value of a number in degrees to radians. |
|
Get the value of a number rounded to the nearest integer. |
|
Get the sign of a number. |
|
Get the sine of a number in radians. |
|
Get the hyperbolic sine of a number. |
|
Get the square root of a number. |
|
Get the sum of an Array or Set of numbers. |
|
Get the tangent of a number in radians. |
|
Get the hyperbolic tangent of a number. |
|
Truncate a number to a given precision. |
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!