Tutorial by Examples

As the powershell is installed by default on every windows system from 7/2008 and above it can be used for more complex calculations: @echo off set "expression=(2+3)*10/1000" for /f %%# in ('"powershell %expression%"') do set result=%%# echo %result% Mind the additional do...
WSH/JScript is installed on every windows system since NT so using it for more complex calculations makes it pretty portable. JScript is easier for combining it with batch file : @if (@codesection==@batch) @then @echo off set "expression=2*(2+3)/1000" for /f %%# in ('cscript //nologo...
Here can be found the most comprehensive math library that emulates pen and paper calculations and allows working with bigger numbers. Here are another examples of pen and paper emulations: ADD , Comparison , Multiply Some math functions implementations can be found here.

Page 1 of 1