From: Pixel Date: 2001-08-30T19:45:55+09:00 Subject: [ruby-talk:20574] Re: Problem with float numbers DaVinci writes: > On Thu, Aug 30, 2001 at 12:29:58PM +0900, Yukihiro Matsumoto wrote: > > | Yes. But what about the other problem? > > | > > | 3.45 * 2.6 => 6.0 > > > > Probably strtod() returns 3.0 (actually 3,0 in this case) for "3.45" > > due to locale. > > Any solution for this? I don't understand why it fails with locale. I > suppose this is a bug in strtod, isn't this? setlocale(LC_NUMERIC, "C")