Rawbots Wiki
Advertisement
Math function

math function v0.0.11

Performs different mathematical operations on two input values.

Input/Output Description Data Type
>in_a Input value a decimal
>in_b Input value b decimal
>type Defines which operation will be performed enumeration
<out Output value decimal
math operations (some operations ignore in_b)
Type Operation Description
ADD Addition
SUBS Subtraction
MULT Multiplication
DIV Division
MOD Modulo Finds the remainder of division of one number by another
SIN Sine
COS Cosinus
TAN Tangent
SQR Square root
ABS Absolute value
MIN Min value Outputs the lower value of and (useful as a max-cap)
MAX Max value Outputs the higher value of and (useful as a min-cap)
POW Power
EXP Exponent
LOG Logarithm
CEIL Ceiling
FLOOR Floor
ROUND Rounding The ordinary rounding of to the nearest integer
SIGN Sign
Advertisement