Expression ToString("#,###.00") seems not work for 0 value

Stimulsoft Reports.JS discussion
Post Reply
hugo
Posts: 360
Joined: Fri Mar 08, 2013 10:46 am

Expression ToString("#,###.00") seems not work for 0 value

Post by hugo »

Hi,

The field SumInsured is decimal and the following expression works when the field have a value > 0: {InsuranceUpdate.SumInsured.ToString("#,###.00")}
However when the value is 0, the field became null (is suppose that is null because all the text surrounding disappear).
Lech Kulikowski
Posts: 7424
Joined: Tue Mar 20, 2018 5:34 am

Re: Expression ToString("#,###.00") seems not work for 0 value

Post by Lech Kulikowski »

Hello,

Try to use the following expression for the correct result:
{InsuranceUpdate.SumInsured.ToString("#,##0.00")}

Thank you.
Post Reply