Categories > TinyButStrong general >

Format number Help

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Toni
Date: 2008-01-16
Time: 12:49

Format number Help

Hi
i need to format my numbers  like this examples:

12345.1231 to => 12.345,123
12345.1200 to=>  12.345,12
or
12.00 to =>12
i used
[...frm='0.000,000'] but wiht it i have always 3 number after "," but i dont like to show 0 after ","
By: Skrol29
Date: 2008-01-16
Time: 17:41

Re: Format number Help

Hi Toni,

You have to code your own formating function, and use it with parameter "onformat".
By: Sheepy
Date: 2008-02-13
Time: 12:49

Re: Format number Help

I can't help but think TBS need a longer and more prominent FAQ, with basic techniques like this... while some developers can learn by example, some prefer by Q&A.  Not that we can eliminate questions from the forum, but for a better learning experience?