Posted Nov 20, 2007 at 01:56PM by Isaac C. Listed in: News Tags: Blizzard, Slouken
Ó

Blizzard's World of Warcraft - Image 1A sort-of-bug has been found by Kameril with the SetFormattedText command in World of Warcraft. Kameril observed that the command has inconsistencies in rounding.

Kameril gave an example of the inconsistency:

local function print(msg)

DEFAULT_CHAT_FRAME:AddMessage(msg)

end


local fs = CreateFrame("Frame"):CreateFontString()

fs:SetFontObject("GameFontNormal")


function TestFormats(float)

print(format("%d", float)/0

fs:SetFormattedText("%d", float)

print(fs:GetText())

end


TestFormats(.4) => 0, 0 as expected

TestFormats(.6) => 0, 1 SetFormattedText rounds up


Blizzard Poster Slouken gave a quick reply saying that the problem has been fixed in 2.3.2.


[Via World of Warcraft Forums] Permalink  |   Email this  |   Linking Blogs   |   Digg It!

Bookmark / Find this article on:

0 Comments


Sort by:


Add QJ.NET
Add to My Yahoo!
Google Reader Subscribe with Bloglines
Add  to your Kinja digest Subscribe in NewsGator Online
Subscribe with Pluck RSS reader Add 'www.qj.net' to Newsburst from CNET News.com
Subscribe with SearchFox RSS del.icio.us www.qj.net
Add to Technorati Favorite! Add to My AOL
furl! it Stumble for Treehugger!
User Favorites - November
Most Commented
No commented articles
User Favorites - November
Top Jumps
No available articles using criteria