All Databases
Inside Mac - Basic Toolbox
Fix2Long
Long2Fix
Fix2Frac
Frac2Fix
Fix2X
X2Fix
Frac2X
X2Frac
Fix2Long
Convert a Fixed to a long data type
#include <
FixMath.h
>
Toolbox Utilities
long
Fix2Long
(
arg
);
Fixed
arg
; value to convert
returns
arg
, expressed as a
long
data type
Fix2Long
returns its
Fixed
argument, converted into a
long
data type.
arg
is a 32-bit
Fixed
value.
Returns
: a 32-bit
long
value, equivalent to
arg
to the best precision possible
for the data type.
Referenced by (2):
Toolbox Utilities (Inside Mac - Index)
Fixed-Point Math Speed (MacTech Vol 13-1997)