1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

@FormatN and decimal separator

Discussion in 'Support' started by jbanaszczyk, Apr 24, 2015.

  1. jbanaszczyk

    Joined:
    Jun 8, 2013
    Messages:
    98
    Likes Received:
    0
    /me again
    Code:
    echo %@eval[4/5] %@FormatN[3.1,%@eval[4/5]]
    0,8 0.8
    
    @eval uses my locale settings, while @FormatN uses fixed dot '.'
    ... but I'm not absolutely sure, that it is an issue :)

    Best regards

    Edit: under TCC/LE 13.06 works as expected
    Code:
    echo %@eval[4/5] %@FormatN[3.1,%@eval[4/5]]
    0,8 0,8
    
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,860
    Likes Received:
    83
    @FORMATN uses the Microsoft RTL functions to format the number, and the RTL functions don't support locale.
     

Share This Page