Thread
:
LUA adding a minus sign to a 0 value. Help!
View Single Post
02-01-11, 08:46 PM
#
9
Saiket
A Chromatic Dragonspawn
Join Date: Jul 2008
Posts: 154
If you round the value before printing, it should go away. You could use something like
print( floor( Value * 100 + 0.5 ) / 100 )
to round to 2 decimal places. I tested that with a manually entered -0 and it gave back 0.
Saiket
View Public Profile
Send a private message to Saiket
Visit Saiket's homepage!
Find More Posts by Saiket