tat Ey int Es0y l/for sep 3 Double conversion to scientific Notaton doab te dy int nuber of digsts; I Count how many diavts there are in d. If there is Wy one do gt which is zero, print "oE O," 2) If...


c++: How do I convert a double to scientific notation, like 45765.98696 to 4.576598696E4 or -0.0069607895 to -6.9607895E-3?


tat Ey int Es0y l/for sep 3<br>Double<br>conversion to scientific Notaton<br>doab te dy<br>int nuber of digsts;<br>I Count how many diavts there are in d. If there is<br>Wy one do gt which is zero, print

Extracted text: tat Ey int Es0y l/for sep 3 Double conversion to scientific Notaton doab te dy int nuber of digsts; I Count how many diavts there are in d. If there is Wy one do gt which is zero, print "oE O," 2) If there is only one NaNt, whichh is non zeto, now thinking that I could set E=0y when I declare it, so that regard lers can just print zero might jut print (d+"E O "). I am of d Geing zero of non-2ero (d+"E"+0), but then agaln, adding blank space. be adding If thete is more than one digit Ef uo decimat anyuebete , photint ft //its a double, there 3) If decimal is placed anywhere but in betureen first non zero Ngst and its preceding digst, move decmal there. If decimal goer in right dire ction, E-- , if In left 4) Print (d+ "E"+E), must bé a deeimal Ett.

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here