How to round off a float value if the value is like:
eg:
- 1.0 ==> then it should return 1
- 2.0 ==> then it should return 2
but if the value is like:
1.2 ==> then it should return 1.2
1.90 ==>then it should return 1.9
I have tried to round off it and also tries different solutions but that doesn't worked for me.