Page 1 of 1

Display Decimal numbers

Posted: Sun Apr 05, 2020 8:52 am
by mahdibg
Hello
In the number display settings, we can specify the "Decimal Digits", this value is fixed for numbers.
Is there a way to dynamically display digits after the . ? For example
12 display => 12
12.1 display => 12.1
12.25 display => 12.25
12.251 display => 12.25


thanks

Re: Display Decimal numbers

Posted: Tue Apr 07, 2020 2:30 pm
by Lech Kulikowski
Hello,

You can use the following expression:
{Format("{" + Format("0:F{0}", digits) + "}", 123.456789)}

Thank you.