fix decimal mark related bug, closed #2

Fixed a bug which occured on systems using "," as decimal mark instead of ".".