H
hong
I am interested in using "SET /A" from DOS to evaluate
numerical expression.
It is straightforward to return decimal equivalence of hex
number
set /a 0x45
69
and decimal equivalence of octal number
set /a 045
37
but is it possible to return hex equivalence of a decimal
number, and likewise octal equivalence of a decimal number
from "SET /A" ?
It'd be useful to have all 3 values returned from one
evaluation e.g.
set /a 32
Decimal: 32 Octal: 40 Hex: 20
set /a 040
Decimal: 32 Octal: 40 Hex: 20
Thanks
Hong
numerical expression.
It is straightforward to return decimal equivalence of hex
number
set /a 0x45
69
and decimal equivalence of octal number
set /a 045
37
but is it possible to return hex equivalence of a decimal
number, and likewise octal equivalence of a decimal number
from "SET /A" ?
It'd be useful to have all 3 values returned from one
evaluation e.g.
set /a 32
Decimal: 32 Octal: 40 Hex: 20
set /a 040
Decimal: 32 Octal: 40 Hex: 20
Thanks
Hong