Division - precision

Rygel via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat May 21 14:45:19 PDT 2016


Hi there. I'm a beginners, so my questions could be silly.

	double x1 = 7.0;
	double x2 = 3.0;
	writeln(x1 / x2);

from this code i get:

2.33333

this is ok but how can i get more digits? For example:

2.333333333.....

thx :-)


More information about the Digitalmars-d-learn mailing list