I have a few operators that I'm wondering about.
1.
(( ) mod ( ))2.
(round ( ))3.
( join [hello][world] )4.
( letter (1) of [world])5.
( length of [world])What are these used for?
Last edited by Firedrake969 (2012-07-18 12:45:47)
Offline
1) Returns the remainder after division (i.e. 23 mod 6 = 5)
2) Rounds a number to the nearest integer (i.e. round(6.782) = 7)
3) Joins two strings together (i.e. join(Hello |World) = "Hello World")
4) Returns the letter of a string (can also be a number) (i.e. letter (5) of (My name) = "a")
5) Returns the length of a string (can also be a number) (i.e. length of (world) = 5)
Offline