floating-WTF

Caligo iteronvexor at gmail.com
Tue Jan 24 09:58:39 PST 2012


On Tue, Jan 24, 2012 at 6:51 AM, Dejan Lekic <dejan.lekic at gmail.com> wrote:
> No, it is not a bug.
>
> Here is a hint:
>
> import std.stdio;
>
> int main() {
>  float f;
>  writeln(f);
>  return 0;
> }
>
> /+--- output ----------+
> nan
> +--- end of output ---+/
>


wow, what a great hint.

sorry, but I'm not convinced that it's not a bug.


More information about the Digitalmars-d-learn mailing list