view run/float_litaeral_dec_02.d @ 40:257b7166865f

fixed with the help of Burton Radons
author thomask
date Wed, 13 Oct 2004 16:21:31 +0000
parents 9ac5baf9ac69
children
line wrap: on
line source

int main(){
	float f = 1.2e-3;
	float a = 12.0;
	float b = 10000.0;
	float c = a/b;
	assert(f == c);
	assert(f == cast(float)a/b);
	return 0;
}