Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Confused With The Last Operator Block (abs) (floor) (ceiling) (ln) (log)
- -TheMaker-
-
Scratcher
8 posts
Confused With The Last Operator Block (abs) (floor) (ceiling) (ln) (log)
Can someone tell me what these blocks mean?
([abs v] of (9))
([floor v] of (9))
([ceiling v] of (9))
([ln v] of (9))
([log v] of (9))
- Chameleon24
-
Scratcher
31 posts
Confused With The Last Operator Block (abs) (floor) (ceiling) (ln) (log)
This article on the Scratch Wiki should help you: http://wiki.scratch.mit.edu/wiki/()_of_()_(Operators_block)
- gtoal
-
Scratcher
1000+ posts
Confused With The Last Operator Block (abs) (floor) (ceiling) (ln) (log)
Can someone tell me what these blocks mean?abs: makes a negative value positive. 0 or positive stay unaltered.([abs v] of (9))([floor v] of (9))([ceiling v] of (9))([ln v] of (9))([log v] of (9))
floor: rounds a number downwards. 1.5 becomes 1. -1.5 becomes -2.
ceiling: rounds a number upwards. 1.5 becomes 2. -1.5 becomes -1.
ln: natural logarithm. If you don't know what this means already speak to your maths teacher.
log: decimal logarithm. Again, ask your teacher. I could explain but I don't know what level of maths you understand already so something like this is much better explained in an interactive conversation.
- -TheMaker-
-
Scratcher
8 posts
Confused With The Last Operator Block (abs) (floor) (ceiling) (ln) (log)
Thank You! I Figured It All Out!
- Discussion Forums
- » Help with Scripts
-
» Confused With The Last Operator Block (abs) (floor) (ceiling) (ln) (log)