Text format 'number' shows decimal digits inappropriate
Text format 'number' shows decimal digits inappropriate
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.
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
Hello.
If you don't want to get extra zeros, please, use Custom Format with next mask:
Thank you.
If you don't want to get extra zeros, please, use Custom Format with next mask:
Code: Select all
#.###
Re: Text format 'number' shows decimal digits inappropriate
Hi Aleksey,Aleksey Andreyanov wrote:Hello.
If you don't want to get extra zeros, please, use Custom Format with next mask:
Thank you.Code: Select all
#.###
Thank you for your response. I checked it and it was right.
Re: Text format 'number' shows decimal digits inappropriate
Hello.
We are always glad to help you.
Let us know if you need any additional help.
Thank you.
We are always glad to help you.
Let us know if you need any additional help.
Thank you.
-
- Posts: 4
- Joined: Tue Feb 27, 2018 5:23 pm
Re: Text format 'number' shows decimal digits inappropriate
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 ?
-
- Posts: 6271
- Joined: Tue Mar 20, 2018 5:34 am
Re: Text format 'number' shows decimal digits inappropriate
Hello,
You can try to add your own function and use it in the text expression.
Thank you.
You can try to add your own function and use it in the text expression.
Thank you.
-
- Posts: 4
- Joined: Tue Feb 27, 2018 5:23 pm
Re: Text format 'number' shows decimal digits inappropriate
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.Code: Select all
#.###
thank you for your answer, using this as base im trying to do the following
Code: Select all
ToString(MyValue,"#,###")
-
- Posts: 6271
- Joined: Tue Mar 20, 2018 5:34 am
Re: Text format 'number' shows decimal digits inappropriate
Hello,
Please check the following article:
https://docs.microsoft.com/en-us/dotnet ... at-strings
Thank you.
Please check the following article:
https://docs.microsoft.com/en-us/dotnet ... at-strings
Thank you.