NT Script: Difference between revisions
Jump to navigation
Jump to search
m
Moved new ones to namespace
imported>Kosmos m (→Math: Added new math functions.) |
imported>Kosmos m (Moved new ones to namespace) |
||
Line 101: | Line 101: | ||
// code block | // code block | ||
} | } | ||
== Math == | == Math == | ||
The math operators are for the most part pretty standard, the only one to watch out for is division which is not the expected / (as that would clash with comments in the naive ntsl parser) | The math operators are for the most part pretty standard, the only one to watch out for is division which is not the expected / (as that would clash with comments in the naive ntsl parser) | ||
Line 111: | Line 112: | ||
/ is division | / is division | ||
== NT Deluxe Namespaces == | == NT Deluxe Namespaces == | ||
Line 176: | Line 167: | ||
| randseed(number) || || Resets the RNG with this value. | | randseed(number) || || Resets the RNG with this value. | ||
|- | |- | ||
| sin(value) || number || Sine. | |||
|- | |||
|cos(value) || number || Cosine. | |||
|- | |||
|asin(value) || number || Arcsine. | |||
|- | |||
|acos(value) || number || Arcossine. | |||
|- | |||
|log(value) || number || Logarithm. | |||
|} | |} | ||