BigNum.add

Add two Big Numbers.

Prototype
   int BigNum.add( bnum1 , bnum2 , bnum3 )

Parameters
   bnum1 and bnum2
      Numbers to be added.
   bnum3
      Returns the sum of bnum1 and bnum2.

Remarks
   bnum1 , bnum2 and bnum3 must be created before function call

Example
   
require( "BigNum.lua" )

result = BigNum.new( )
a = BigNum.new( "639" )
b = BigNum.new( "563" )
BigNum.add( a , b , result )
print( a .. " + " .. b .. " = " .. result )

a = BigNum.new( "-543" )
b = BigNum.new( "1256" )
BigNum.add( a , b , result )
print( a .. " + " .. b .. " = " .. result )

--Try to add non valid parameters
ret = BigNum.add( a , d , result )
print( ret )
   
Output 639 + 563 = 1202 -543 + 1256 = 713 0