This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
blocks:operators [2017/10/02 16:36] simplesi |
blocks:operators [2017/10/02 17:21] (current) simplesi |
||
---|---|---|---|
Line 22: | Line 22: | ||
| {{blocks:abs.png|}} | | | | {{blocks:abs.png|}} | | | ||
| {{blocks:truncate.png|}}|Reports the integer part of the number | | | {{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: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: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: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:max.png|}} |Reports the biggest of all of the values | | ||
| {{blocks:min.png|}} |Reports the smallest of all of the values | | | {{blocks:min.png|}} |Reports the smallest of all of the values | | ||
| {{blocks:sqrt.png|}} | | | | {{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:distancebetween.png|}} |Reports the distance between two points | | ||
| {{blocks:directionfrom.png|}} |Reports the direction vector from 1st point to 2nd point | | | {{blocks:directionfrom.png|}} |Reports the direction vector from 1st point to 2nd point | |