This seems like what could be a common cause of bugs
Steven Schveighoffer
schveiguy at yahoo.com
Fri Jul 8 16:03:43 PDT 2011
On Fri, 08 Jul 2011 18:47:55 -0400, Andrej Mitrovic
<andrej.mitrovich at gmail.com> wrote:
> On 7/9/11, Andrej Mitrovic <andrej.mitrovich at gmail.com> wrote:
>> double step = 1 / width; // or .1
>
> Woops that should have been `1.`. See, another bug right there!
1.0
1. is a horrible legacy thing, and should be removed.
-Steve
More information about the Digitalmars-d-learn
mailing list