ReferenceScript nodesMath › Number
Maths Function
One of the everyday functions of a number.
ƒMaths Function
A0Result
FunctionAbsolute
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
Ax | number | 0 | – |
Functionwhich | choice | Absolute | One of: Absolute, Round, Floor, Ceiling, Square root, Sine, Cosine, Negate, Fraction. |
Outputs
| Pin | Type |
|---|---|
Resultout | number |
The code it becomes
The graph below written as a script would write it.
// On Scene Startscene.log((Math.abs(0)));In a graph
◆On Scene Start
ƒMaths Function
A0Result
FunctionAbsolute
ƒPrint
In Text
The node with what starts it and Print to show what it gives, as Studio draws them.
Related
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.