Changes the value of a Big Number.
Prototype
int BigNum.change( bnum, num )
Parameters
num
String or Big Number or Float or nil.
Remarks
If num is a String or a Big Number, the new value of bnum is a representation of num.
If num is a Float, bnum is a representation of the integer part of num.
If num is nil, the new vaue of bnum is a representation of number zero.
Example
require( "BigNum.lua" )
a = BigNum.new( "639" )
b = BigNum.new( "563" )
print( b )
BigNum.change( b , a )
print( b )
BigNum.change( b, "-543" )
print( b )
BigNum.change( b )
print( b )
Output