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

Problem with @eval[sin(0)] and similar

Discussion in 'Support' started by Esteban, Jun 30, 2010.

  1. Esteban

    Joined:
    Feb 1, 2010
    Messages:
    15
    Likes Received:
    0
    Hello,

    Unless I'm wrong, the following issue has not been reported yet. Did I mistyped something?
    D:\X>echo %@eval[sin(0)]
    Eval warning: '_set_string', Non-digit char found in parse
    Eval warning: Text =
    Eval warning: 0.000000000000000000000000000000,
    0

    D:\X>echo %@eval[cos(0)]
    8000000000000000000000000000000

    D:\X>echo %@eval[tan(0)]
    Eval warning: '_set_string', Non-digit char found in parse
    Eval warning: Text =
    Eval warning: 0.000000000000000000000000000000,
    0

    D:\X>echo %@eval[tan(pi)]
    Eval warning: '_set_string', Non-digit char found in parse
    Eval warning: Text =
    Eval warning: -0.409295251930604372057504812992,
    0

    D:\X>echo %@eval[tan(3,141592654)]
    Eval warning: '_set_string', Non-digit char found in parse
    Eval warning: Text =
    Eval warning: 0.000000000410206761537356616744,
    0

    D:\X>echo %@eval[log(2)]
    Eval warning: '_set_string', Non-digit char found in parse
    Eval warning: Text =
    Eval warning: 0.693147180559945309417232121458,
    0

    D:\X>echo %@eval[log10(2)]
    Eval warning: '_set_string', Non-digit char found in parse
    Eval warning: Text =
    Eval warning: 0.301029995663981195213738894725,
    0
    etc...

    Working under XP Pro (French) and the last TCC 11.0 build 50. It seems the same problem exists since TCC 9 or even before...

    Any idea?
    Esteban
     
  2. Jim Cook

    Joined:
    May 20, 2008
    Messages:
    605
    Likes Received:
    0
    and similar

    This does not happen when the DecimalChar is Period and the ThousandsChar is
    Comma. When reversed (as in your setup, I believe from the 3,141... below)
    the problem shows up.

    To test the other way, use option / Advanced / Localization.

    On Wed, Jun 30, 2010 at 6:56 AM, Esteban <> wrote:




    --
    Jim Cook
    2010 Sundays: 4/4, 6/6, 8/8, 10/10, 12/12 and 5/9, 9/5, 7/11, 11/7.
    Next year they're Monday.
     
  3. Esteban

    Joined:
    Feb 1, 2010
    Messages:
    15
    Likes Received:
    0
    Re: and similar

    Hi,

    You're right, the localization was set on Automatic, i.e. comma for decimal separator in France. Strange enough, even things like %@eval[pi] shows weird results but without error message.

    Until this issue is fixed, I'll use setdos /g., in my batches only for calculations.

    Thanks Jim
     
  4. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,726
    Likes Received:
    80
    Re: and similar

    It's fixed in 11.0.51 (already uploaded).

    Rex Conn
    JP Software
     
  5. Glennbo51

    Glennbo51 Guest

    Re: and similar

    On 07/01/2010 08:52, rconn wrote:

    Check for updates doesn't find it yet
     
  6. Glennbo51

    Glennbo51 Guest

    Re: and similar

    On 07/01/2010 10:02, GlennBo51 wrote:

    My mistake I was in the wrong place. It did update. My Bad
     
  7. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,726
    Likes Received:
    80
    Re: and similar

    Works fine here. (Though unless you're a non-US or UK user, you don't need
    it.)

    Rex Conn
    JP Software
     
  8. Esteban

    Joined:
    Feb 1, 2010
    Messages:
    15
    Likes Received:
    0
    Re: and similar

    http download was still build 50 one hour ago, but ftp is already build 51. Seems to work also me also.

    Thanks Rex. :)
     

Share This Page