void main() { uint max = cast(uint) double.max; foreach(i; 0..max) assert(i == cast(double)i); }