Groups
Groups
Sign in
Groups
Groups
CodenameOne Discussions
Conversations
Labels
About
Send feedback
Help
How to display a numeric content in Decimal Format
21 views
Skip to first unread message
Rubén V
unread,
Oct 7, 2020, 5:14:20 PM
10/7/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CodenameOne Discussions
Hi,
How can I display 5345.24 as "5,345.24".
Thanks
Shai Almog
unread,
Oct 7, 2020, 10:03:43 PM
10/7/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CodenameOne Discussions
Hi,
check out the L10NManager's format methods.
Message has been deleted
Diamond Mubaarak
unread,
Oct 8, 2020, 6:43:41 AM
10/8/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CodenameOne Discussions
In addition to using L10NManager's format Shai mentioned above, I have a method to maintain a fixed number of decimal places:
https://gist.github.com/diamondobama/0db1f0c5137129294fdc9254072a77ec
Rubén V
unread,
Oct 9, 2020, 9:04:19 PM
10/9/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CodenameOne Discussions
Thanks
Reply all
Reply to author
Forward
0 new messages