Platforms to show: All Mac Windows Linux Cross-Platform

Back to CFNumberMBS class.

CFNumberMBS.Compare(other as CFNumberMBS) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreFoundation MBS MacCF Plugin ✅ Yes ❌ No ❌ No ✅ Yes All
Compares two CFNumbers.

Return values:
Less Than-1
Equal To0
Greater Than1

From CFNumberMBS.h:

Compares the two CFNumberMBS instances. If conversion of the types of the values is needed, the conversion and comparison follow human expectations and not C's promotion and comparison rules. Negative zero compares less than positive zero.
Positive infinity compares greater than everything except itself, to which it compares equal. Negative infinity compares less than everything except itself, to which it compares equal. Unlike standard practice, if both numbers are NaN, then they compare equal; if only one of the numbers is NaN, then the NaN compares greater than the other number if it is negative, and smaller than the other number if it is positive.

The items on this page are in the following plugins: MBS MacCF Plugin.


The biggest plugin in space...