Tom Del Rosso
2021-03-07 03:19:37 UTC
This is curious.
set x=09
set /a y=x
results in the answer zero, but it should give the invalid number error.
set /a y=%x%
does give the expected error.
BTW I like to use
set /a y=(1%x%-100) ...*/-+...
as a compact way to remove the zero.
set x=09
set /a y=x
results in the answer zero, but it should give the invalid number error.
set /a y=%x%
does give the expected error.
BTW I like to use
set /a y=(1%x%-100) ...*/-+...
as a compact way to remove the zero.
--
Defund the Thought Police
Defund the Thought Police