Avatar

Level 1

oh i see. but my issue is that i need to display the trailing zero when the value is zero, dynamically.

eg:

input -> output

1.00    ->     1.00

1.000     -> 1.000

1.0000     -> 1.0000

the trailing zero must appear according to the number of trailing zero user input. it must be dynamic.

seeking for advice. thank you.