Search

September 23, 2002
D »
...this?

constants c = constants.pi;
extended e = cast(extended) constants.pi;

No. (some implicit conversion...
September 22, 2002
D »
...why not let it provide float values too?

enum constants : extended
{
    pi = 3.1415926535897932384626433832795;
}

Sean

September 07, 2002
D »
...precision) is important in many applications.  Define pi otherwise and you lose 6 significant digits...
August 20, 2002
D »
...QJ(/,`]V<@\NO6ER`X.@<'#@SHJ3_#*P<(KMSPKQ_PI
M*ZR0^3.=JY#Y$YK`X...
June 01, 2002
D »
...of referring to pi as 3.141592653589793 at every appearance, the
variable PI can be...
January 24, 2002
D »
The idea of DML is a generalization of "Embedding D in HTML" as outlined at...
January 24, 2002
D »
Ladies and gentlemen, I honestly find myself wondering why we would go to the trouble...
August 25, 2001
D »
...diamond
	draw(d:mybox p:there r:(PI/4));


I will say that I wouldn...
August 18, 2001
D »
...float, char* foo ()
	{
		return 1, 3.1416, "pi";
	}
which is preferable to
	int foo (float...
August 17, 2001
D »
...that.pointer_to->something_else = z**(2*pi) / (x ^ 0xff);

Let's move it all...
Next ›   Last »