Search found 2 matches

by Lamcourt
28 Oct 2015 14:57
Forum: DOS Batch Forum
Topic: Weird arithmetic error in a simple script
Replies: 4
Views: 2617

Re: Weird arithmetic error in a simple script

Waw ... so stupid of me... Thanks a lot :D
by Lamcourt
28 Oct 2015 14:26
Forum: DOS Batch Forum
Topic: Weird arithmetic error in a simple script
Replies: 4
Views: 2617

Weird arithmetic error in a simple script

Hello, I have a very singular issue with this script : @echo off set /p L=L? set /p l=l? set /a s=%L%*%l% echo s = %s% pause If L=5 and l=4, it gives me 16 as a result !!!! (L stands for L arge and l stands for l entgh ) But if I replace L and l by a and b, it works perfectly How comes ??? Thx a lot