FLOAT_

Class used internally to represent native booleans.

Summary
FLOAT_Class used internally to represent native booleans.
Properties
FLOAT_.doubleGet boolean value specifying whether this class represents single- or double-precision floating-point numbers.
FLOAT_.double=Get boolean value specifying whether this class represents single- or double-precision floating-point numbers.
Functions
FLOAT_.to_sDisplay name of this type.
FLOAT_.defaultReturn default value for this type.
FLOAT_.floatUsed internally.
FLOAT_.typesizeGet memory size of this type.
FLOAT_.descriptorDescriptor for Array.pack and String.unpack.
FLOAT_.coercionRuby coercion mechanism.
FLOAT_.coerceNative coercion.
FLOAT_.==Ruby comparison operator.
Related
Constants
Single- or double precisionTo be used with the method INT.
Floating-point type shortcuts
Functions
FLOATConstruct floating-point class.

Properties

FLOAT_.double

Get boolean value specifying whether this class represents single- or double-precision floating-point numbers.

FLOAT_.double=

Get boolean value specifying whether this class represents single- or double-precision floating-point numbers.

Functions

FLOAT_.to_s

def FLOAT_.to_s

Display name of this type.

FLOAT_.default

def FLOAT_.default

Return default value for this type.

Returns

0.0

FLOAT_.float

def FLOAT_.float

Used internally.  Returns itself.

FLOAT_.typesize

def FLOAT_.typesize

Get memory size of this type.

Returns

4 for single- and 8 for double-precision.

FLOAT_.descriptor

def FLOAT_.descriptor

Descriptor for Array.pack and String.unpack.

Returns

’f’ for single- and ‘d’ for double-precision.

FLOAT_.coercion

def FLOAT_.coercion(other)

Ruby coercion mechanism.

FLOAT_.coerce

def FLOAT_.coerce(other)

Native coercion.

FLOAT_.==

def FLOAT_.==(other)

Ruby comparison operator.

Related

Summary
Constants
Single- or double precisionTo be used with the method INT.
Floating-point type shortcuts
Functions
FLOATConstruct floating-point class.

Constants

Single- or double precision

To be used with the method INT.

SINGLEfalse
DOUBLEtrue

Floating-point type shortcuts

SFLOATSingle-precision floating-point number.
DFLOATDouble-precision floating-point number.

Functions

FLOAT

def FLOAT(double)

Construct floating-point class.

Parameters

doublePrecision.  One of SINGLE or DOUBLE.
def FLOAT_.to_s
Display name of this type.
def FLOAT_.default
Return default value for this type.
def FLOAT_.float
Used internally.
def FLOAT_.typesize
Get memory size of this type.
def FLOAT_.descriptor
Descriptor for Array.pack and String.unpack.
def FLOAT_.coercion(other)
Ruby coercion mechanism.
def FLOAT_.coerce(other)
Native coercion.
def FLOAT_.==(other)
Ruby comparison operator.
32-bit signed integer
def FLOAT(double)
Construct floating-point class.
false
true
Close