I am trying to use the following code to add a ".00" after a given number.
Code: Select all
put 10 into temp
add 10 to temp
format(temp,".00")
answer temp
Thanks,
Googie.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
put 10 into temp
add 10 to temp
format(temp,".00")
answer temp
Code: Select all
put ".00" after XXX
Code: Select all
on mouseUp
put 123.45678 into XXX
put the format("%1.2f", XXX) into XXX
put XXX
end mouseUp
Code: Select all
put 10 into temp
set the numberFormat to "0.00"
add 10 to temp
answer temp