[racket-dev] .1 evaluates to 0.0 [was Re: plot doesn't plot (inexact->exact: no exact representation for +nan.0)]

From: Neil Toronto (neil.toronto at gmail.com)
Date: Wed Dec 28 11:08:09 EST 2011

On 12/28/2011 05:18 AM, Matthew Flatt wrote:
> Thanks for all the new info! I don't think that it's a bytcode problem.
> I start to wonder if it's in number parsing...
> On line 1102 of "src/racket/src/numstr.c", there's a call to STRTOD().
> Does it change anything if you wrap that call with calls to
> scheme_push_c_numeric_locale() and scheme_pop_c_numeric_locale(loc)?:
> ...

Locales? Then maybe I wasn't crazy for thinking the bug might 
discriminate against people whose first language isn't English? Laurent 
speaks French and I think Marijn speaks Dutch.

(Beautiful country, BTW, Marijn. I was at Avifauna for a conference.)

I had an email about this ready, but then I tried switching DrRacket's 
language to French and Dutch to see if I could duplicate it. I couldn't, 
so I deleted the email.

Neil T

Posted on the dev mailing list.