lkrcmar/S-Space — pull request #6 by lkrcmar (2014-11-30 09:05:31+00:00)
Title: Replaces usage of printf by print or println in the affected files.

Solves #2

printf, used in some junint test files, uses Locale.getDefault(). This is 'cs' in my case. Because parseDouble uses no locale (I think so) I had the following problem. In some junit tests (see the affected files), matrix double values were stored into tmp files with comma as decimal separator (1,500000 or 2,500000). These values were later read from the tmp files with the help off parseDouble which expected dot as the decimal separator (1.500000 or 2.500000). This lead to NumberFormatException.

The solution which works for me is to use println and print instead of printf (see the code changes). If I understand the problem correclty println and print outputs the numbers using dot as decimal separator (no locale is used as is the case with parseDouble).

Hopefully, there is no need for so many zeros. I output the above mentioned numbers as 1.5 and 2.5.