I want to remove decimal values only if all the decimal values are `0`.

If I use `parseFloat()`:

> 
> 50.00 => 50  
> 
>  60.50 => 60.5
> 
> 
> 

My expected output:

> 
> 50.00 => 50  
> 
>  60.50 => 60.50
> 
> 
> 

I can't use `Math.round()`, `Math.trunk()`, `Math.floor()`, `ParseInt()`. 

Is there any other way?