I required results like for number ‘500.000100’ result should be ‘500.0001’. truncate the zeros to last available number.

If no value is available after decimal then value to two decimal e.g return 500.000000 to 500.00