OutputVar := instance.Add(value)
Adds MfInt64 value to current instance of MfInt64.
value
The value to add to the current instance.
Can be any type that matches IsNumber or var integer.
If ReturnAsObject is true then returns current instance of MfInt64 with an updated value; Otherwise returns var containing integer.
Throws MfNotSupportedException if Readonly is true.
Throws MfNullReferenceException if called as a static method
Throws MfArgumentNullException if value is null.
Throws MfArgumentException if value is not an instance of MfInt64 and can not be converted into integer value.
Throws MfArgumentOutOfRangeException if adding value is less then MinValue and greater than MaxValue
If value is a float or MfFloat instance then method will alway round down for positive number and round up for negative numbers. For instance 2.8 is converted to 2 and -2.8 is converted to -2.
i := new MfInt64(10, true) ; create new MfInt64 and set it RetrunAsObject to value to true
i.Add(2)
iNew := new MfInt64(8)
MsgBox % i.Add(iNew).Value ; displays 20
Msgbox % i.Add(-10).Value ; displays 10
MsgBox % i.Add(10).Add(10).Value ; displays 30