Math, asked by Mandy4875, 1 year ago

How to erase one decimal if the last decimal is zero in floating point value in cpp

Answers

Answered by vamritaeunameun
0

Step-by-step explanation:

  1. Your exponent starts at zero.
  2. Slide the decimal so there is only one non-zero digit to the left of the decimal.
  3. Trim off any leading zeros (on the left end)
  4. 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