AddOns
AddOn Manager
Latest 200
Browse
Upload AddOn
Search AddOns
Projects
Author Portals
Git Repositories
SVN Repositories
Options
Email Feeds
Preference
Download History
News
Forums
New posts
Today's Posts
Search Forum
Categories
General
AddOns, Comps, Macros
Featured Projects
Developer
Site Forums
Mark Forums Read
Subscribed Threads
Open Buddy List
Members List
Help
Login
Sign up
WoWInterface
»
Developer Discussions
»
Lua/XML Help
»
floating point
Go to Page...
Reply
View First Unread
Thread Tools
Display Modes
06-07-06, 08:18 AM
#
1
Rince
A Murloc Raider
Join Date: May 2006
Posts: 6
floating point
how do i set up the floating point in lua ?
if im calcualating the % of something i get like 12 decimals …
Rince
View Public Profile
Send a private message to Rince
Find More Posts by Rince
06-07-06, 08:25 AM
#
2
JoshBorke
A Chromatic Dragonspawn
Join Date: Feb 2006
Posts: 185
you can use string.format('%.<digits>f',floatingPointNumber) to restrict the number of decimal points to show.
JoshBorke
View Public Profile
Send a private message to JoshBorke
Find More Posts by JoshBorke
06-07-06, 08:29 AM
#
3
Rince
A Murloc Raider
Join Date: May 2006
Posts: 6
okay thx for fast reply - sounds easy
Rince
View Public Profile
Send a private message to Rince
Find More Posts by Rince
Reply
WoWInterface
»
Developer Discussions
»
Lua/XML Help
» floating point
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
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