(view source code of multiply_3rdparty.bat as plain text)
CALL :MULTIPLY _FIRST _SECOND _ANSWER
::MULTIPLY NUMBERS LARGER THAN 32-BITS
::SYNTAX: CALL MULTIPLY _VAR1 _VAR2 _VAR3
::VER 1.2 - Fixed ending carry over bug - Thanks Justin
::firstname.lastname@example.org - drop me a note telling me
::if this has helped you. Sometimes I don't know if anyone uses my stuff
::Its free for the world to use.
::I retain the rights to it though, you may not copyright this
::to prevent others from using it, you may however copyright works
::as a whole that use this code.
::Just don't try to stop others from using this through some legal means.
::CopyRight Brian Williams 5/18/2009
:: _VAR1 = VARIABLE AGAINST WHICH WE SHALL COMPARE
:: _VAR2 = VARIABLE TO BE COMPARED
:: _VAR3 = VARIABLE WITH TRUE/FALSE RETURNED
SET _NUM%%A=!_NUM%%A:%%B=%%B !
SET /A !_RESULT!=!_NUM1! * !_NUM2!
SET /A _TMP=!_%%B_NUM2! * !_%%A_NUM1! !_PLUS! !_CO!
SET /A _CNT+=1
) ELSE (
page last uploaded: 2021-01-27, 16:12