Fix to remove trailing zeros in float