View Single Post
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