How do I remove trailing zeros from a decimal number?

Certified Senior Developer

How do I remove trailing zeros from a decimal number which is in text format. For Ex. Input 12345.60891200 should return 12345.608912 as output.
We can't use decimal as input or output as it has its limitation that increments last number or puts number into exponential format. I want to keep number as it is except removing trailing zeros if any so that actual value does not change.

OriginalPostID-225901

OriginalPostID-225901

  Discussion posts and replies are publicly visible

Parents Reply Children