Decimal Precision issue for 2 decimal points

Stimulsoft Reports.WEB discussion
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: Decimal Precision issue for 2 decimal points

Post by Lech Kulikowski »

Hello,

Thank you for the information.
simader
Posts: 5
Joined: Mon Jun 21, 2021 12:22 pm

Re: Decimal Precision issue for 2 decimal points

Post by simader »

One last question: Is there a Stimulsoft-Setting to set this globally for all reports which we render in code?
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: Decimal Precision issue for 2 decimal points

Post by Lech Kulikowski »

Hello,

Which settings do you mean?

Thank you.
niamul21
Posts: 1
Joined: Mon Jun 28, 2021 2:04 am

Re: Decimal Precision issue for 2 decimal points

Post by niamul21 »

anishravindran wrote: Fri May 25, 2018 11:21 am Team,

When a report is designed for 2 decimal precision for any format like Number or Percentage the report rendering is inconsistent in different environments. For example I get exactly two decimals points in local environment but I may get three decimal points once the same template is deployed in cloud platform.

This is happening only when we put 2 decimal points in formatting. If I put any other value other than two it is working fine.

So to find what is happening I just tried different options in decimal precision and I happen to notice that when 2 decimal points are given the tag is not written to the MRT file. Please refer below for 2 decimal and 3 three decimal options for the same field.

I am using Stimulsoft 2018.2.1 version

For 3 decimal points:-

<TextFormat Ref="22" type="NumberFormat" isKey="true">
<DecimalDigits>3</DecimalDigits>
<GroupSeparator>,</GroupSeparator>
<NegativePattern>1</NegativePattern>
<UseLocalSetting>False</UseLocalSetting>
</TextFormat>

For 2 decimal points:-
<TextFormat Ref="22" type="NumberFormat" isKey="true">
<GroupSeparator>,</GroupSeparator>
<NegativePattern>1</NegativePattern>
<UseLocalSetting>False</UseLocalSetting>
</TextFormat>

Looks like because of this the report rendering is inconsistent. I manually added this tag to the report fields and deployed to cloud environment and then it worked for me.

Let me know if you need more information.

Please can you help to fix this? Thanks in advance.
This looks very helpful. Thanks for sharing with us.

Jewelry Photo Retouching Service
Last edited by niamul21 on Wed Jan 05, 2022 9:15 am, edited 1 time in total.
Andrew
Posts: 4104
Joined: Fri Jun 09, 2006 3:58 am

Re: Decimal Precision issue for 2 decimal points

Post by Andrew »

okay, thank you
Post Reply