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

Feb 1, 2010
15
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
 
May 20, 2008
603
0
Sammamish, WA
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:


> 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
>
>
>
>
>



--
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.
 
Feb 1, 2010
15
0
Re: 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.

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
 
G

Glennbo51

Guest
Re: and similar

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

> ---Quote---
>> 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.
>>
>> Hope this will be corrected one day.
> ---End Quote---
> It's fixed in 11.0.51 (already uploaded).
>
> Rex Conn
> JP Software
>
>
>
>
>
Check for updates doesn't find it yet
 
G

Glennbo51

Guest
Re: and similar

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

> On 07/01/2010 08:52, rconn wrote:
>
>
> ---Quote---
>> ---Quote---
>>> 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.
>>>
>>> Hope this will be corrected one day.
>> ---End Quote---
>> It's fixed in 11.0.51 (already uploaded).
>>
>> Rex Conn
>> JP Software
>>
>>
>>
>>
>>
> ---End Quote---
> Check for updates doesn't find it yet
>
>
>
>
>
My mistake I was in the wrong place. It did update. My Bad
 
Feb 1, 2010
15
0
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

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

Thanks Rex. :)
 
Similar threads
Thread starter Title Forum Replies Date
dcantor Problem with @EVAL, TCC12 Support 7
Dick Johnson Weird Color Problem Support 8
fishman@panix.com Problem with 27.15 Support 2
M Problem with VSDevCmd.bat in VS 16.7.3 Support 0
R Problem with @INT[ value] in V26 Support 9
M Selecting test "off by one" problem in Take command Support 4
Alpengreis UTF-8 problem in TCC related to Python Support 7
K_Meinhard Small problem in german IDE 26 Support 3
B Problem with color in nested shells Support 1
Joe Caverly Problem creating and switching to a DESKTOP Support 9
vefatica Another popup problem Support 10
Alpengreis ffind dialog (/W) problem Support 4
Alpengreis [TCMD v25.00.24] Small space problem with the DE translation in Prefs-GUI Support 1
Alpengreis [TCMD v25.00.24] Problem with copy and paste and the # char via mouse in TCC Support 6
A Problem with functions @int @decimal and identifying Powershell as a shell. Support 12
B IF command problem in tcexit.btm Support 9
fishman@panix.com Problem at Startup of TCC Support 3
P Problem with SFTP copies Support 7
P Problem with FTP copies Support 10
Jay Sage Problem with Context Menu Copy+Paste+Run Key Assignment Support 7
R Problem with %_do_loop in nested do loops Support 2
fishman@panix.com New Problem with later Windows 10 Support 10
Peter Murschall A little problem with LEAVE and COMMENT Support 5
M Handling of %~I problem Support 4
WinLanEm FOR problem Support 18
K Problem With SCRPUT /u Support 3
vefatica What's TCMD's problem with ^e[0m? Support 13
Peter Murschall IDE: RTL with non-English resources-problem is back in Build 28 Support 4
rps Regex problem: \xnn not recognized as a hex character Support 0
rps PRIORITY LOW problem Support 1
old coot Regex problem: \xnn not recognized as a hex character Support 12
vefatica Another problem with build 22. Support 3
Alpengreis [23.x] Download-Problem Support 2
S Problem with " Support 3
C Problem navigating forums Support 11
x13 Problem listing repository files using DIR http(s)://... Support 8
Joe Caverly Problem with TEE in v22 Support 2
Alpengreis Problem with thousands delimiter and colors Support 17
M Take Command 18, migrating to another machine, license problem. Support 1
B TCC 21.01.50 Problem with ALIAS /r and SET /r Support 2
rps How to? @search problem Support 2
WinLanEm @SELECT problem Support 6
T Fixed Problem with use of Batch parameters in the IDE Support 1
Oz Solomon Problem with "list" Support 14
S V21.24 theme problem Support 2
Alpengreis Problem if command prompt is not legacy Support 4
Alpengreis TCMD.INI: The "super hidden" problem ... Support 6
G Odd problem - screen brightness Support 4
rps V20 In-process pipes problem Support 8
Alpengreis Again theme problem [v20.0.21]? Support 11

Similar threads