C
christoph.heindl
Hi,
it seems I have messed up my system somehow to produce strange
floating point parsing errors (out of range).
-- Environment
This pc here is running Windows Vista SP 1 (English) and a fresh
installation of ruby (ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-
mswin32]) provided by the one-click installer. My regional settings
are set so that the decimal symbol is '.' and digit grouping symbol is
','.
-- Problem
A floating point number causes an out of range error in either windows
command prompt or any .rb file.
12.5
where '12.5' is a placeholder for any decimal number. This also
happens when placed in a .rb file.
Other entities, such as integers, cause no parsing errors.
However, in irb everything seems to be fine.
12.5
Any ideas?
it seems I have messed up my system somehow to produce strange
floating point parsing errors (out of range).
-- Environment
This pc here is running Windows Vista SP 1 (English) and a fresh
installation of ruby (ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-
mswin32]) provided by the one-click installer. My regional settings
are set so that the decimal symbol is '.' and digit grouping symbol is
','.
-- Problem
A floating point number causes an out of range error in either windows
command prompt or any .rb file.
-e:1: warning: Float 12.5 out of rangeruby -e 'p 12.5'
12.5
where '12.5' is a placeholder for any decimal number. This also
happens when placed in a .rb file.
Other entities, such as integers, cause no parsing errors.
However, in irb everything seems to be fine.
irb(main):001:0> p 12.5
12.5
Any ideas?