And I get the same error in Bash:

$ printf "%0.2f\n" 3.1416
bash: printf: 3.1416: invalid number
0,00
lab-5.5.0/BG$ printf "%0.2f\n" 3,1416
3,14

So it has to do with the weird tries to "simplify" things ...

Stefan


On 2014-07-29 16:31, Leon Bevc wrote:
xUbuntu 14.04.1 - 32bit / Scilab 5.5.0 / LANG=sl_SI.UTF-8

No problem here, printf functions outputs decimal point.


2014-07-29 16:06 GMT+02:00 Stefan Du Rietz <s...@durietz.se
<mailto:s...@durietz.se>>:

    Hello,
    under Xubuntu 14.04 (Ubuntu Linux with XFCE) and locale
    en_DK.UTF-8 all Scilab printf functions output decimal commas
    instead of points:

    -->x = 0.6231166;
    -->xstr = msprintf("%0.2f", x)
      xstr  =
      0,62

    which leads to

    -->eval(xstr)
      ans  =
         0.

    and (worse) wrong numbers written to text files.

    I have not tried Scilab Scilab 5.5.0 in my earlier Xubuntu 12.04.
    Under Windows 7 I get the normal behaviour.

    Regards
    Stefan
    _________________________________________________
    users mailing list
    users@lists.scilab.org <mailto:users@lists.scilab.org>
    http://lists.scilab.org/__mailman/listinfo/users
    <http://lists.scilab.org/mailman/listinfo/users>




_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

Reply via email to