Page 1 of 1
Text format 'number' shows decimal digits inappropriate
Posted: Tue Sep 01, 2015 7:59 am
by onazifi
Hello,
In my report I wanna show a number with decimal digits.
But, in stimulsoft report, when I select "text format" as "Number" and give decimal digits to 3, shows the number inappropriate.
For example If we have 121250.36 and set "text format" as "Number", active Use Group Separator, decimal digits equals 3, Group size equals 3. It will show 121250.360
How can I solve this problem?
Kindly suggest some solution for this.
Thank you.
Re: Text format 'number' shows decimal digits inappropriate
Posted: Tue Sep 01, 2015 12:03 pm
by HighAley
Hello.
If you don't want to get extra zeros, please, use Custom Format with next mask:
Thank you.
Re: Text format 'number' shows decimal digits inappropriate
Posted: Tue Sep 01, 2015 12:25 pm
by onazifi
Aleksey Andreyanov wrote:Hello.
If you don't want to get extra zeros, please, use Custom Format with next mask:
Thank you.
Hi Aleksey,
Thank you for your response. I checked it and it was right.
Re: Text format 'number' shows decimal digits inappropriate
Posted: Tue Sep 01, 2015 2:28 pm
by HighAley
Hello.
We are always glad to help you.
Let us know if you need any additional help.
Thank you.
Re: Text format 'number' shows decimal digits inappropriate
Posted: Tue Jun 05, 2018 8:52 pm
by joaquinsuarez69
Hi, related to this topic, i have a number with several decimal digits but i dont want to see all of them in a report and i have a number in the data that says how many should be. how can i implement this ?
Re: Text format 'number' shows decimal digits inappropriate
Posted: Fri Jun 08, 2018 7:04 am
by Lech Kulikowski
Hello,
You can try to add your own function and use it in the text expression.
Thank you.
Re: Text format 'number' shows decimal digits inappropriate
Posted: Fri Jun 08, 2018 5:17 pm
by joaquinsuarez69
HighAley wrote: ↑Tue Sep 01, 2015 12:03 pm
Hello.
If you don't want to get extra zeros, please, use Custom Format with next mask:
Thank you.
thank you for your answer, using this as base im trying to do the following
and it works with the comma, but when i use the same expression but using the dot it doesn't works, the value that shows is 10000. while with comma 10,000 What could be the problem ?
Re: Text format 'number' shows decimal digits inappropriate
Posted: Mon Jun 11, 2018 11:49 am
by Lech Kulikowski
Hello,
Please check the following article:
https://docs.microsoft.com/en-us/dotnet ... at-strings
Thank you.