Page 1 of 1

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

Posted: Wed Oct 01, 2025 1:15 pm
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).

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

Posted: Wed Oct 01, 2025 6:31 pm
by Lech Kulikowski
Hello,

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

Thank you.