[Rock-dev] [rock] #66: Vizkit uses comma as decimal point by default
rock
noreply at opendfki.de
Mon Oct 24 13:10:47 CEST 2011
#66: Vizkit uses comma as decimal point by default
------------------------+-----------------------------------
Reporter: alco01 | Owner: rock-dev-mailing-list
Type: defect | Status: new
Priority: major | Component: base
Keywords: Ruby Vizkit |
------------------------+-----------------------------------
Hi folks,
I discoveded a fairly strange behavior of the String.to_f method using
Rock. While Orocos uses the decimal point, Vizkit prefers the comma. In my
opinion, we should stick to the decimal point within the whole system
because it is standard in all programming languages (known to me). Here is
a simple IRB test result:
{{{
irb(main):001:0> "9.9".to_f
=> 9.9
irb(main):002:0> require 'orocos'
=> true
irb(main):003:0> "9.9".to_f
=> 9.9
irb(main):004:0> require 'vizkit'
=> true
irb(main):005:0> "9.9".to_f
=> 9,9
}}}
Regards,
Allan
--
Ticket URL: <https://rock.opendfki.de/ticket/66>
rock <https://rock.opendfki.de>
rock: the robot construction kit
More information about the Rock-dev
mailing list