Login or Sign Up
Logging in...
Remember me
Log in
Forgot password or user name?
or
Sign Up
Log in with
Search in titles only
Search in EFS Studies only
Search
Advanced Search
Forums
Articles
Groups
Member List
Forum
EFS Development
EFS Studies
Announcement
Collapse
No announcement yet.
printing values to screen
Collapse
X
Collapse
Posts
Latest Activity
Photos
Search
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
flexie
Registered User
Join Date:
Aug 2005
Posts:
29
Share
Tweet
#1
printing values to screen
12-09-2005, 05:37 AM
when printing a value to the screen/chart using drawTextRelative, is there any way to limit the number of decimal points?
Thanks
ACM
Senior User
Join Date:
Oct 2002
Posts:
19393
Share
Tweet
#2
12-09-2005, 05:39 AM
flexie
You can use either the
.toFixed(n)
method where
n
is the number of decimals you want to show or you can use
formatPriceNumber(your_value)
Alex
Comment
Post
Cancel
flexie
Registered User
Join Date:
Aug 2005
Posts:
29
Share
Tweet
#3
12-09-2005, 06:30 AM
ah yes, found a previous post on decimals. Did the search for "toFixed" ... added the code ... works great.... man I love .efs.
Thanks
Alexis
Comment
Post
Cancel
ACM
Senior User
Join Date:
Oct 2002
Posts:
19393
Share
Tweet
#4
12-09-2005, 06:32 AM
flexie
You are most welcome
Alex
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
X
Comment