Re: Confused about something in the D book relating to precision

2022-12-04 Thread thebluepandabear via Digitalmars-d-learn
I have to agree. Nobody really knows these by heart. Once you know what's available, you just come back and pick what you need for that occasion. Ali Thanks for your effort :-) It helped clear things up.

Re: Confused about something in the D book relating to precision

2022-12-04 Thread Ali Çehreli via Digitalmars-d-learn
On 12/4/22 18:57, thebluepandabear wrote: > I am not understanding why Ali said there is a decimal mark if precision > is nonzero? > > How can a number have zero precision? That "precision" is referring to how many digits are printed after the decimal mark in the formatted output. > "the requ

Confused about something in the D book relating to precision

2022-12-04 Thread thebluepandabear via Digitalmars-d-learn
Hello guys, (Noob question.) I would appreciate some help. I am reading Ali's book on D language, and I am up to page 127 -- talking about format specifiers. He says the following about the '%e' (exponent) specifier: "e: A floating point argument is printed according to the following rules