====== Operators ====== ^ Blocks ^ Description ^ |{{blocks:add.png|}} | | |{{blocks:subtract.png|}} | | |{{blocks:multiply.png|}} | | |{{blocks:divide.png|}} | | |{{blocks:mod.png|}} | Report the remainder left over from integer division of the two values | |{{blocks:random.png|}}|Report random number from 1 to value| |{{blocks:lessthan.png|}} | Report true if 1st value is less than 2nd value | |{{blocks:lessorequalthan.png|}}|Report true if 1st value is less than or equal to the 2nd value | |{{blocks:equal.png|}}|Report true if 1st value is equal to 2nd value| |{{blocks:notequal.png|}}|Report true if 1st value is not equal to 2nd value | |{{blocks:greaterorequalthan.png|}}| | |{{blocks:greaterthan.png|}} | | |{{blocks:isbetween.png|}}|Report true if the value is between or equal to the limit values| | {{blocks:and.png|}} | | | {{blocks:or.png|}} | | | {{blocks:not.png|}} | | | {{blocks:boolean.png|}}|Boolean true or false | | {{blocks:abs.png|}} | | | {{blocks:truncate.png|}}|Reports the integer part of the number | | {{blocks:round.png|}}|Reports the number to the nearest integer\\ e.g round(1.4999) gives 1,round(1.5) gives 2, round(-1.5) gives -2.| | {{blocks:floor.png|}}|Rounds the number towards next lowest integer\\ e.g floor(1.4999) gives 1,floot(1.5) gives 1, floor(-1.1) gives -2. | | {{blocks:ceiling.png|}} |Rounds the number towards next highest integer\\ e.g ceiling(1.1) gives 2, ceiling(-1.9) gives -1. | | {{blocks:max.png|}} |Reports the biggest of all of the values | | {{blocks:min.png|}} |Reports the smallest of all of the values | | {{blocks:sqrt.png|}} | | | {{blocks:isprime.png|}} | | | {{blocks:isnil.png|}} | | | {{blocks:isnotnil.png|}} | | | {{blocks:nil.png|}} | | | {{blocks:distancebetween.png|}} |Reports the distance between two points | | {{blocks:directionfrom.png|}} |Reports the direction vector from 1st point to 2nd point | | {{blocks:sin.png|}} | | | {{blocks:cos.png|}} | | | {{blocks:tan.png|}} | | | {{blocks:arctan.png|}} | | | {{blocks:toradians.png|}} | | | {{blocks:todegrees.png|}} | | | {{blocks:pi.png|}} | | | {{blocks:log.png|}} | | | {{blocks:pwrof.png|}} | | | {{blocks:e.png|}} | |