Thread
:
Rounding down on Lua
View Single Post
07-19-12, 05:04 PM
#
5
Aanson
A Flamescale Wyrmkin
Join Date: Aug 2009
Posts: 124
Originally Posted by
Phanx
I would suggest doing
floor(ChatFrame1:GetHeight()
+ 0.5
)
, so that if it returns 179.99999943743243 you will end up with 180, which is probably what you want.
Cheers Phanx lol. You've read my mind. That's perfect.
Aanson
__________________
__________________
Aanson
View Public Profile
Send a private message to Aanson
Find More Posts by Aanson