LessThenOrEqual()

Namespace ›› System ›› MfInteger ›› Methods ››
Parent Previous Next

LessThenOrEqual()

OutputVar := instance.LessThenOrEqual(value)

LessThenOrEqual(value)

Compares the current MfInteger object to a specified MfInteger object and returns an indication of their relative values.

Parameters

value

The Object or var containing, integer to compare to current instance.
Can be any type that matches IsNumber.

Returns

Returns true if the current instance has less or equal value then the value instance; Otherwise false.

Throws

Throws MfNullReferenceException if called as a static method
Throws MfArgumentException if value is not an instance of MfInteger and can not be converted into integer value.

Remarks

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.