Thread Tools Display Modes
Prev Previous Post   Next Post Next
07-19-12, 07:54 AM   #1
Aanson
A Flamescale Wyrmkin
Join Date: Aug 2009
Posts: 124
Rounding down on Lua

Hey guys, quick question...

I've created a button which allows me to increase/decrease the height of ChatFrame by using OnMouseWheel.

The button also shows the height of the ChatFrame with OnSizeChanged:

Lua Code:
  1. self.text:SetText("Height: "..ChatFrame1:GetHeight())
It returns though with something like 280.00033324777.

While I appreciate it's accuracy lol, could someone give me a pointer on how I can round down the data that I get from GetHeight()?

Any help would be hugely appreciated .

Aanson
__________________
__________________
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Rounding down on Lua


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off