Categories > TinyButStrong general >

Aggregate question

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Shashi
Date: 2010-10-22
Time: 13:35

Aggregate question

Hi,

I am showing the format as: frm='0000.0000'
This makes the output of 3.2838 to 0003.2838

How to ensure that I get only 2 digits after decimal, but leave whatever comes before decimal the way it is.
such that the above comes as 3.28  and if there is say 100 , it will be 100.28 and if 0.0345, then just 0.34

Thanks,
Shashi

By: Shashi
Date: 2010-10-22
Time: 13:38

Re: Aggregate question

I tried to look into the codes into the plugin also, to apply sprintf before its returned, but it looks way cryptic for me :)
Instead of in the class, at runtime would be good
By: Skrol29
Date: 2010-10-22
Time: 15:38

Re: Aggregate question

Hi,

>How to ensure that I get only 2 digits after decimal, but leave whatever comes before decimal the way it is.

frm='0.00'
By: Shashi
Date: 2010-10-23
Time: 06:12

Re: Aggregate question

thank  you..
I had tried this, but was not working before.
I think i did just frm=0.00 without the '

But now, even without the ' is working.