I am trying to doing some maths but I want the results rounded to two decimal points.
I have tried using the round function, with x2 but this doubled the answer instead of knocking off all the extra digits.
Any ideas??
Thx, Neelix087
Offline
Use iteration:
set [reader v] to (1) repeat until <(letter) = (.)> set [letter v] to (letter (reader) of (answer)) add (letter (reader) of (answer)) to [answerlist v] change [reader v] by (1) end repeat (2) add (letter (reader) of (answer))to [answerlist v] change [reader v] by (1) end set [answer v] to (answerlist) //should be list
Offline
set [number v] to ((round((number)*(100)))/(100))I believe this is what you're looking for.
Offline