Difference between revisions of "Mixly Block Category - Math"

From Microduino Wiki
Jump to: navigation, search
(Trigonometry Function)
(Number Function)
Line 15: Line 15:
  
 
=Number Function=
 
=Number Function=
*toInt
+
*toInt - Converts the input into an Integer type and returns it. (https://www.arduino.cc/en/Reference/Int) and returns it. Read more here: https://www.arduino.cc/en/Reference/IntCast
*abs
+
*abs - Takes the absolute value of the input and returns it. Read more here: https://www.arduino.cc/en/reference/abs
*sq
+
*sq - Takes the square of the input and returns it. Read more here: https://www.arduino.cc/en/Reference/Sq
*sqrt
+
*sqrt - Takes the square root of the input and returns it. Read more here: https://www.arduino.cc/en/Reference/Sqrt
*log
+
*log - Takes the natural log of the input and returns it: Read more here: https://www.arduino.cc/en/Reference/MathHeader
 +
 
 
=Max=
 
=Max=
 
=Random Integer=
 
=Random Integer=
 
=Constrain=
 
=Constrain=
 
=Map=
 
=Map=

Revision as of 21:21, 15 February 2017

Number Value

Numeric value which can be assigned to a variable or used in function parameters.

Arithmetic Operations

Performs the arithmetic operations and returns that value. Variables can be used to inputs.

Trigonometry Function

Number Function

Max

Random Integer

Constrain

Map