Strip trailing zeros from a number or amount string
stripTrailingZeros(100.0000) // '100'stripTrailingZeros(0.1000) // '0.1'stripTrailingZeros('100.1234') // '100.1234' Copy
stripTrailingZeros(100.0000) // '100'stripTrailingZeros(0.1000) // '0.1'stripTrailingZeros('100.1234') // '100.1234'
Strip trailing zeros from a number or amount string