How to erase one decimal if the last decimal is zero in floating point value in cpp
Answers
Answered by
0
Step-by-step explanation:
- Your exponent starts at zero.
- Slide the decimal so there is only one non-zero digit to the left of the decimal.
- Trim off any leading zeros (on the left end)
- Trim off any trailing zeros (on the right end) only if the original number had no decimal point.
i hope it will helps you friend
Similar questions