I want to make a function whic will remove all the tralling zeros from a numeric data type.
Means i just want to pass the numeric data as an input and want the reslut like this:-
1. Eg.:- 123.0000
Relust:- 123
2. Eg:- 123.0100
Result:- 123.01
This is a discussion on how to remove zero after decimal number within the C++ Programming forums, part of the General Programming Boards category; I want to make a function whic will remove all the tralling zeros from a numeric data type. Means i ...
I want to make a function whic will remove all the tralling zeros from a numeric data type.
Means i just want to pass the numeric data as an input and want the reslut like this:-
1. Eg.:- 123.0000
Relust:- 123
2. Eg:- 123.0100
Result:- 123.01
Duplicate
how to remove zero after decimal point
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.