I want to round off the given number to one decimal place but if the number is a whole number then output should have one zero after decimal.
Example:
Input: 24.66, 24.0002, 24.62
Output : 24.7, 24.0, 24.6
I want to round off the given number to one decimal place but if the number is a whole number then output should have one zero after decimal.
Example:
Input: 24.66, 24.0002, 24.62
Output : 24.7, 24.0, 24.6