Platforms to show: All Mac Windows Linux Cross-Platform

Back to CFNumberMBS class.

CFNumberMBS.ByteSize as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreFoundation MBS MacCF Plugin ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the size in bytes of the type of the number.

(Read only property)

CFNumberMBS.doubleValue as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreFoundation MBS MacCF Plugin ✅ Yes ❌ No ❌ No ✅ Yes All
The value of this CFNumberMBS object.

(Read only property)

CFNumberMBS.int16Value as Int16

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreFoundation MBS MacCF Plugin 15.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Queries value as 16bit integer.

(Read only property)

CFNumberMBS.int32Value as Int32

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreFoundation MBS MacCF Plugin 15.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Queries value as 32bit integer.

(Read only property)

CFNumberMBS.int64Value as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreFoundation MBS MacCF Plugin 15.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Queries value as 64bit integer.
Example
dim c as CFNumberMBS = CFNumberMBS.NewWithInt64(123456789123456789)

// shows type. 4 is signed 64-bit integer
MsgBox str(c.NumberType)+": "+str(c.int64Value)

(Read only property)

CFNumberMBS.int8Value as Int8

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreFoundation MBS MacCF Plugin 15.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Queries value as 8bit integer.

(Read only property)

CFNumberMBS.integerValue as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreFoundation MBS MacCF Plugin ✅ Yes ❌ No ❌ No ✅ Yes All
The value of this CFNumberMBS object.
Example
dim n as CFNumberMBS

n=NewCFNumberMBSInteger(45)

MsgBox str(n.doubleValue)+" "+str(n.integerValue)+" "+str(n.singleValue)

n=NewCFNumberMBSSingle(45.67)

MsgBox str(n.doubleValue)+" "+str(n.integerValue)+" "+str(n.singleValue)

n=NewCFNumberMBSDouble(45.6789)

MsgBox str(n.doubleValue)+" "+str(n.integerValue)+" "+str(n.singleValue)

// in version 5.1 of the plugins:
// 45 45 45
// 45.67 0 45.67
// 45.6789 0 0
//
// in version 5.2 of the plugins: (after a fix)
// 45 45 45
// 45.67 45 45.67
// 45.6789 45 45.6789

Returns a trancated value if the number is not storeable in an integer.
(Read only property)

CFNumberMBS.isFloat as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreFoundation MBS MacCF Plugin ✅ Yes ❌ No ❌ No ✅ Yes All
Returns TRUE if the type of the CFNumberMBS's value is one of the defined floating point types.

(Read only property)

CFNumberMBS.NumberType as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreFoundation MBS MacCF Plugin ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the storage format of the CFNumberMBS's value.

Possible values:
NameValueXojo Datatype
SInt81-
SInt162-
SInt323integer
SInt644-
Float325single
Float646double
Char7-
Short8-
Int9-
Long10integer
LongLong11-
Float12single
Double13double
CFIndex14integer
(Read only property)

CFNumberMBS.singleValue as single

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreFoundation MBS MacCF Plugin ✅ Yes ❌ No ❌ No ✅ Yes All
The value of this CFNumberMBS object.
Example
dim n as CFNumberMBS

n=NewCFNumberMBSInteger(45)

MsgBox str(n.doubleValue)+" "+str(n.integerValue)+" "+str(n.singleValue)

n=NewCFNumberMBSSingle(45.67)

MsgBox str(n.doubleValue)+" "+str(n.integerValue)+" "+str(n.singleValue)

n=NewCFNumberMBSDouble(45.6789)

MsgBox str(n.doubleValue)+" "+str(n.integerValue)+" "+str(n.singleValue)

// in version 5.1 of the plugins:
// 45 45 45
// 45.67 0 45.67
// 45.6789 0 0
//
// in version 5.2 of the plugins: (after a fix)
// 45 45 45
// 45.67 45 45.67
// 45.6789 45 45.6789

Returns a trancated value if the number is not storeable in a single.
(Read only property)

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


The biggest plugin in space...