LayerAS_Layer
ObjectFixed_Point_Math

Fixed point math object.



Define Summary
 Define
 ASFixedNegInf
 ASFixedPosInf
 ASFixedRoundToInt16
Converts a fixed point number to an ASInt16, rounding the result.
 ASFixedRoundToInt32
Converts a fixed point number to an ASInt32, rounding the result.
 ASFixedTruncToInt16
Converts a fixed point number to an ASInt16, truncating the result.
 ASFixedTruncToInt32
Converts a fixed point number to an ASInt32, truncating the result.
 ASFloatToFixed
 ASInt16ToFixed
Converts an ASInt16 to a fixed point number.
 ASInt32ToFixed
Converts an ASInt32 to a fixed point number.
 fixedEight
ASFixedConstants
 fixedEighth
ASFixedConstants
 fixedEleven
ASFixedConstants
 fixedFifty
ASFixedConstants
 fixedFive
ASFixedConstants
 fixedFiveHundred
ASFixedConstants
 fixedFour
ASFixedConstants
 fixedFourThirds
ASFixedConstants
 fixedGolden
ASFixedConstants
 fixedHalf
ASFixedConstants
 fixedHundred
ASFixedConstants
 fixedHundredFifty
ASFixedConstants
 fixedHundredth
ASFixedConstants
 FixedMatrix
 FixedMatrixP
 fixedNegativeInfinity
ASFixedConstants
 fixedNine
ASFixedConstants
 fixedNinety
ASFixedConstants
 fixedOne
ASFixedConstants
 fixedOne1
ASFixedConstants
 fixedOneAnd3Qtr
ASFixedConstants
 fixedOneAndQuarter
ASFixedConstants
 fixedOneEighty
ASFixedConstants
 fixedPi2
ASFixedConstants
 fixedPi4
ASFixedConstants
 FixedPointP
 fixedPositiveInfinity
ASFixedConstants
 FixedQuad
 FixedQuadP
 fixedQuarter
ASFixedConstants
 FixedRectP
 FixedRoundToInt16
 FixedRoundToInt32
 fixedSeven
ASFixedConstants
 fixedSevenEighths
ASFixedConstants
 fixedSeventyTwo
ASFixedConstants
 fixedSix
ASFixedConstants
 fixedSixteen
ASFixedConstants
 fixedSixteenth
ASFixedConstants
 fixedSqrtTwo
ASFixedConstants
 fixedTen
ASFixedConstants
 fixedTenth
ASFixedConstants
 fixedTenThousand
ASFixedConstants
 fixedThird
ASFixedConstants
 fixedThirtyTwo
ASFixedConstants
 fixedThousand
ASFixedConstants
 fixedThree
ASFixedConstants
 fixedThreeHalves
ASFixedConstants
 fixedThreeQuarters
ASFixedConstants
 FixedTruncToInt16
 FixedTruncToInt32
 fixedTwelfth
ASFixedConstants
 fixedTwelve
ASFixedConstants
 fixedTwo
ASFixedConstants
 fixedTwoSeventy
ASFixedConstants
 fixedTwoThirds
ASFixedConstants
 fixedZero
ASFixedConstants
 Int16ToFixed
 Int32ToFixed
Typedef Summary
 Typedef
 ASFixed
The ASFixed type is a 32-bit quantity representing a rational number with the high (low on little-endian machines) 16 bits representing the number's mantissa and the low (high on little-endian machines) 16 bits representing the fractional part. The definition is platform-dependent.
 ASFixedMatrix
 ASFixedMatrixP
 ASFixedP
 ASFixedPoint
 ASFixedPointP
 ASFixedQuad
 ASFixedQuadP
 ASFixedRect
 ASFixedRectP
Structure Summary
 Structure
 _t_ASFixedMatrix
Matrix containing fixed numbers.
 _t_ASFixedPoint
A point (in two-dimensional space) represented by two fixed numbers.
 _t_ASFixedQuad
A quadrilateral represented by four fixed points (one at each corner). In the Acrobat viewer, a quadrilateral differs from a rectangle in that a rectangle must always have horizontal and vertical sides, and opposite sides must be parallel.
 _t_ASFixedRect
A rectangle represented by the coordinates of its four sides. In the Acrobat viewer, a rectangle differs from a quadrilateral in that a rectangle must always have horizontal and vertical sides, and opposite sides must be parallel.
Method Summary
 Method
 
ASFixed ASCStringToFixed(const char* s)
Converts a CString to a fixed point number. It processes the string from left to right only until the first invalid character is located (for example, a-z, A-Z).
 
ASFixed ASFixedDiv(ASFixed a, ASFixed b)
Divides two fixed numbers.
 
Multiplies two matrices.
 
Inverts a matrix.
 
Transforms the point p through the matrix m, and puts the result in result. p and result can point to the same location.
 
Transforms a rectangle through a matrix.
 
ASFixed ASFixedMul(ASFixed a, ASFixed b)
Multiplies two fixed numbers.
 
void ASFixedToCString(ASFixed f, char* s, os_size_t maxLength, ASSmallCount precision)
Converts a fixed number to a CString.
 
float ASFixedToFloat(ASFixed inASFixed)
Converts an ASFixed to a float.
 
ASFixed FloatToASFixed(double inFloat)
Converts a float to an ASFixed value.
Defines Detail
ASFixedNegInf 
Product availability: All
Platform availability: All

Syntax

#define ASFixedNegInf ASMINInt32

File: ASExpT.h
Line: 651
ASFixedPosInf 
Product availability: All
Platform availability: All

Syntax

#define ASFixedPosInf ASMAXInt32

File: ASExpT.h
Line: 648
ASFixedRoundToInt16 
Product availability: All
Platform availability: All

Syntax

#define ASFixedRoundToInt16 ((ASInt16) (((f) + fixedHalf) >> 16))

Description

Converts a fixed point number to an ASInt16, rounding the result.

See Also


File: ASExpT.h
Line: 728
ASFixedRoundToInt32 
Product availability: All
Platform availability: All

Syntax

#define ASFixedRoundToInt32 ((ASInt32) (((f) + fixedHalf) >> 16))

Description

Converts a fixed point number to an ASInt32, rounding the result.

See Also


File: ASExpT.h
Line: 683
ASFixedTruncToInt16 
Product availability: All
Platform availability: All

Syntax

#define ASFixedTruncToInt16 ((ASInt16) ((f) >> 16))

Description

Converts a fixed point number to an ASInt16, truncating the result.

See Also


File: ASExpT.h
Line: 743
ASFixedTruncToInt32 
Product availability: All
Platform availability: All

Syntax

#define ASFixedTruncToInt32 ((ASInt32) ((f) >> 16))

Description

Converts a fixed point number to an ASInt32, truncating the result.

See Also


File: ASExpT.h
Line: 698
ASFloatToFixed 
Product availability: Acrobat, Reader
Platform availability: Macintosh, Windows, UNIX

Syntax

#define ASFloatToFixed FloatToASFixed

File: ASCalls.h
Line: 517
ASInt16ToFixed 
Product availability: All
Platform availability: All

Syntax

#define ASInt16ToFixed ((ASFixed)(i) << 16)

Description

Converts an ASInt16 to a fixed point number.

See Also


File: ASExpT.h
Line: 712
ASInt32ToFixed 
Product availability: All
Platform availability: All

Syntax

#define ASInt32ToFixed ((ASFixed)(i) << 16))

Description

Converts an ASInt32 to a fixed point number.

See Also


File: ASExpT.h
Line: 668
fixedEight 
Product availability: All
Platform availability: All

Syntax

#define fixedEight ((ASFixed) 0x00080000L)

File: ASExpT.h
Line: 957
fixedEighth 
Product availability: All
Platform availability: All

Syntax

#define fixedEighth ((ASFixed) 0x00002000L)

File: ASExpT.h
Line: 842
fixedEleven 
Product availability: All
Platform availability: All

Syntax

#define fixedEleven ((ASFixed) 0x000B0000L)

File: ASExpT.h
Line: 972
fixedFifty 
Product availability: All
Platform availability: All

Syntax

#define fixedFifty ((ASFixed) 0x00320000L)

File: ASExpT.h
Line: 992
fixedFive 
Product availability: All
Platform availability: All

Syntax

#define fixedFive ((ASFixed) 0x00050000L)

File: ASExpT.h
Line: 942
fixedFiveHundred 
Product availability: All
Platform availability: All

Syntax

#define fixedFiveHundred ((ASFixed) 0x01F40000L)

File: ASExpT.h
Line: 1027
fixedFour 
Product availability: All
Platform availability: All

Syntax

#define fixedFour ((ASFixed) 0x00040000L)

File: ASExpT.h
Line: 937
fixedFourThirds 
Product availability: All
Platform availability: All

Syntax

#define fixedFourThirds ((ASFixed) 0x00015555L)

File: ASExpT.h
Line: 897
fixedGolden 
Product availability: All
Platform availability: All

Syntax

#define fixedGolden ((ASFixed) 0x00019e37L)

File: ASExpT.h
Line: 922
fixedHalf 
Product availability: All
Platform availability: All

Syntax

#define fixedHalf ((ASFixed) 0x00008000L)

File: ASExpT.h
Line: 857
fixedHundred 
Product availability: All
Platform availability: All

Syntax

#define fixedHundred ((ASFixed) 0x00640000L)

File: ASExpT.h
Line: 1007
fixedHundredFifty 
Product availability: All
Platform availability: All

Syntax

#define fixedHundredFifty ((ASFixed) 0x00960000L)

File: ASExpT.h
Line: 1012
fixedHundredth 
Product availability: All
Platform availability: All

Syntax

#define fixedHundredth ((ASFixed) 0x0000028FL)

File: ASExpT.h
Line: 822
FixedMatrix 
Product availability: All
Platform availability: All

Syntax

#define FixedMatrix

File: CoreExpT.h
Line: 247
FixedMatrixP 
Product availability: All
Platform availability: All

Syntax

#define FixedMatrixP

File: CoreExpT.h
Line: 248
fixedNegativeInfinity 
Product availability: All
Platform availability: All

Syntax

#define fixedNegativeInfinity ASFixedNegInf

File: ASExpT.h
Line: 1042
fixedNine 
Product availability: All
Platform availability: All

Syntax

#define fixedNine ((ASFixed) 0x00090000L)

File: ASExpT.h
Line: 962
fixedNinety 
Product availability: All
Platform availability: All

Syntax

#define fixedNinety ((ASFixed) 0x005a0000L)

File: ASExpT.h
Line: 1002
fixedOne 
Product availability: All
Platform availability: All

Syntax

#define fixedOne ((ASFixed) 0x00010000L)

File: ASExpT.h
Line: 887
fixedOne1 
Product availability: All
Platform availability: All

Syntax

#define fixedOne1 ((ASFixed) 0x0000ffffL)

File: ASExpT.h
Line: 882
fixedOneAnd3Qtr 
Product availability: All
Platform availability: All

Syntax

#define fixedOneAnd3Qtr ((ASFixed) 0x0001C000L)

File: ASExpT.h
Line: 912
fixedOneAndQuarter 
Product availability: All
Platform availability: All

Syntax

#define fixedOneAndQuarter ((ASFixed) 0x00014000L)

File: ASExpT.h
Line: 892
fixedOneEighty 
Product availability: All
Platform availability: All

Syntax

#define fixedOneEighty ((ASFixed) 0x00b40000L)

File: ASExpT.h
Line: 1017
fixedPi2 
Product availability: All
Platform availability: All

Syntax

#define fixedPi2 ((ASFixed) 0x00019220L)

File: ASExpT.h
Line: 917
fixedPi4 
Product availability: All
Platform availability: All

Syntax

#define fixedPi4 ((ASFixed) 0x0000c910L)

File: ASExpT.h
Line: 872
FixedPointP 
Product availability: All
Platform availability: All

Syntax

#define FixedPointP

File: CoreExpT.h
Line: 243
fixedPositiveInfinity 
Product availability: All
Platform availability: All

Syntax

#define fixedPositiveInfinity ASFixedPosInf

File: ASExpT.h
Line: 1047
FixedQuad 
Product availability: All
Platform availability: All

Syntax

#define FixedQuad

File: CoreExpT.h
Line: 245
FixedQuadP 
Product availability: All
Platform availability: All

Syntax

#define FixedQuadP

File: CoreExpT.h
Line: 246
fixedQuarter 
Product availability: All
Platform availability: All

Syntax

#define fixedQuarter ((ASFixed) 0x00004000L)

File: ASExpT.h
Line: 847
FixedRectP 
Product availability: All
Platform availability: All

Syntax

#define FixedRectP

File: CoreExpT.h
Line: 244
FixedRoundToInt16 
Product availability: All
Platform availability: All

Syntax

#define FixedRoundToInt16 ASFixedRoundToInt16

File: ASExpT.h
Line: 810
FixedRoundToInt32 
Product availability: All
Platform availability: All

Syntax

#define FixedRoundToInt32 ASFixedRoundToInt32

File: ASExpT.h
Line: 807
fixedSeven 
Product availability: All
Platform availability: All

Syntax

#define fixedSeven ((ASFixed) 0x00070000L)

File: ASExpT.h
Line: 952
fixedSevenEighths 
Product availability: All
Platform availability: All

Syntax

#define fixedSevenEighths ((ASFixed) 0x0000E000L)

File: ASExpT.h
Line: 877
fixedSeventyTwo 
Product availability: All
Platform availability: All

Syntax

#define fixedSeventyTwo ((ASFixed) 0x00480000L)

File: ASExpT.h
Line: 997
fixedSix 
Product availability: All
Platform availability: All

Syntax

#define fixedSix ((ASFixed) 0x00060000L)

File: ASExpT.h
Line: 947
fixedSixteen 
Product availability: All
Platform availability: All

Syntax

#define fixedSixteen ((ASFixed) 0x00100000L)

File: ASExpT.h
Line: 982
fixedSixteenth 
Product availability: All
Platform availability: All

Syntax

#define fixedSixteenth ((ASFixed) 0x00001000L)

File: ASExpT.h
Line: 827
fixedSqrtTwo 
Product availability: All
Platform availability: All

Syntax

#define fixedSqrtTwo ((ASFixed) 0x00016A0AL)

File: ASExpT.h
Line: 902
fixedTen 
Product availability: All
Platform availability: All

Syntax

#define fixedTen ((ASFixed) 0x000A0000L)

File: ASExpT.h
Line: 967
fixedTenth 
Product availability: All
Platform availability: All

Syntax

#define fixedTenth ((ASFixed) 0x00001999L)

File: ASExpT.h
Line: 837
fixedTenThousand 
Product availability: All
Platform availability: All

Syntax

#define fixedTenThousand ((ASFixed) 0x27100000L)

File: ASExpT.h
Line: 1037
fixedThird 
Product availability: All
Platform availability: All

Syntax

#define fixedThird ((ASFixed) 0x00005555L)

File: ASExpT.h
Line: 852
fixedThirtyTwo 
Product availability: All
Platform availability: All

Syntax

#define fixedThirtyTwo ((ASFixed) 0x00200000L)

File: ASExpT.h
Line: 987
fixedThousand 
Product availability: All
Platform availability: All

Syntax

#define fixedThousand ((ASFixed) 0x03E80000L)

File: ASExpT.h
Line: 1032
fixedThree 
Product availability: All
Platform availability: All

Syntax

#define fixedThree ((ASFixed) 0x00030000L)

File: ASExpT.h
Line: 932
fixedThreeHalves 
Product availability: All
Platform availability: All

Syntax

#define fixedThreeHalves ((ASFixed) 0x00018000L)

File: ASExpT.h
Line: 907
fixedThreeQuarters 
Product availability: All
Platform availability: All

Syntax

#define fixedThreeQuarters ((ASFixed) 0x0000C000L)

File: ASExpT.h
Line: 867
FixedTruncToInt16 
Product availability: All
Platform availability: All

Syntax

#define FixedTruncToInt16 ASFixedTruncToInt16

File: ASExpT.h
Line: 811
FixedTruncToInt32 
Product availability: All
Platform availability: All

Syntax

#define FixedTruncToInt32 ASFixedTruncToInt32

File: ASExpT.h
Line: 808
fixedTwelfth 
Product availability: All
Platform availability: All

Syntax

#define fixedTwelfth ((ASFixed) 0x00001555L)

File: ASExpT.h
Line: 832
fixedTwelve 
Product availability: All
Platform availability: All

Syntax

#define fixedTwelve ((ASFixed) 0x000C0000L)

File: ASExpT.h
Line: 977
fixedTwo 
Product availability: All
Platform availability: All

Syntax

#define fixedTwo ((ASFixed) 0x00020000L)

File: ASExpT.h
Line: 927
fixedTwoSeventy 
Product availability: All
Platform availability: All

Syntax

#define fixedTwoSeventy ((ASFixed) 0x010e0000L)

File: ASExpT.h
Line: 1022
fixedTwoThirds 
Product availability: All
Platform availability: All

Syntax

#define fixedTwoThirds ((ASFixed) 0x0000AAAAL)

File: ASExpT.h
Line: 862
fixedZero 
Product availability: All
Platform availability: All

Syntax

#define fixedZero ((ASFixed) 0x00000000L)

File: ASExpT.h
Line: 817
Int16ToFixed 
Product availability: All
Platform availability: All

Syntax

#define Int16ToFixed ASInt16ToFixed

File: ASExpT.h
Line: 809
Int32ToFixed 
Product availability: All
Platform availability: All

Syntax

#define Int32ToFixed ASInt32ToFixed

File: ASExpT.h
Line: 806

Typedefs Detail
ASFixed 
Product availability: All
Platform availability: All

Syntax

typedef ASInt32 ASFixed;

The ASFixed type is a 32-bit quantity representing a rational number with the high (low on little-endian machines) 16 bits representing the number's mantissa and the low (high on little-endian machines) 16 bits representing the fractional part. The definition is platform-dependent.

ASFixedP is a pointer to an ASFixed object.

Addition, subtraction, and negation with ASFixed types can be done with + and - operators, unless you are concerned with overflow. Overflow in ASFixed-value operations is indicated by the values fixedPositiveInfinity and fixedNegativeInfinity.

See Also


File: ASExpT.h
Line: 640
ASFixedMatrix 
Product availability: All
Platform availability: All

Syntax

typedef _t_ASFixedMatrix ASFixedMatrix;

File: ASExpT.h
Line: 1075
ASFixedMatrixP 
Product availability: All
Platform availability: All

Syntax

typedef _t_ASFixedMatrix ASFixedMatrixP;

File: ASExpT.h
Line: 1075
ASFixedP 
Product availability: All
Platform availability: All

Syntax

typedef ASInt32 ASFixedP;

File: ASExpT.h
Line: 640
ASFixedPoint 
Product availability: All
Platform availability: All

Syntax

typedef _t_ASFixedPoint ASFixedPoint;

File: ASExpT.h
Line: 1091
ASFixedPointP 
Product availability: All
Platform availability: All

Syntax

typedef _t_ASFixedPoint ASFixedPointP;

File: ASExpT.h
Line: 1091
ASFixedQuad 
Product availability: All
Platform availability: All

Syntax

typedef _t_ASFixedQuad ASFixedQuad;

File: ASExpT.h
Line: 1148
ASFixedQuadP 
Product availability: All
Platform availability: All

Syntax

typedef _t_ASFixedQuad ASFixedQuadP;

File: ASExpT.h
Line: 1148
ASFixedRect 
Product availability: All
Platform availability: All

Syntax

typedef _t_ASFixedRect ASFixedRect;

File: ASExpT.h
Line: 1115
ASFixedRectP 
Product availability: All
Platform availability: All

Syntax

typedef _t_ASFixedRect ASFixedRectP;

File: ASExpT.h
Line: 1115


Structure Detail
_t_ASFixedMatrix
Product availability: All
Platform availability: All

Syntax

struct _t_ASFixedMatrix {
 ASFixed a; 
 
 ASFixed b; 
 
 ASFixed c; 
 
 ASFixed d; 
 
 ASFixed h; 
 
 ASFixed v; 
}

Matrix containing fixed numbers.


File: ASExpT.h
Line: 1055

_t_ASFixedPoint 
Product availability: All
Platform availability: All

Syntax

struct _t_ASFixedPoint {
 ASFixed h; 
 
 ASFixed v; 
}

A point (in two-dimensional space) represented by two fixed numbers.


File: ASExpT.h
Line: 1083

_t_ASFixedQuad 
Product availability: All
Platform availability: All

Syntax

struct _t_ASFixedQuad {
 ASFixedPoint tl; 
 
 ASFixedPoint tr; 
 
 ASFixedPoint bl; 
 
 ASFixedPoint br; 
}

A quadrilateral represented by four fixed points (one at each corner). In the Acrobat viewer, a quadrilateral differs from a rectangle in that a rectangle must always have horizontal and vertical sides, and opposite sides must be parallel.


File: ASExpT.h
Line: 1145

_t_ASFixedRect 
Product availability: All
Platform availability: All

Syntax

struct _t_ASFixedRect {
 ASFixed left; 
 
 ASFixed top; 
 
 ASFixed right; 
 
 ASFixed bottom; 
}

A rectangle represented by the coordinates of its four sides. In the Acrobat viewer, a rectangle differs from a quadrilateral in that a rectangle must always have horizontal and vertical sides, and opposite sides must be parallel.


File: ASExpT.h
Line: 1101


Method Detail
ASCStringToFixed()
Product availability: All
Platform availability: All

Syntax

ASFixed ASCStringToFixed(const char* s)

Converts a CString to a fixed point number. It processes the string from left to right only until the first invalid character is located (for example, a-z, A-Z).

Parameters

s — 

A CString to convert.

Returns

Fixed number corresponding to s. Returns 0 if the string does not contain any valid number.

See Also

Since

PI_ACROSUPPORT_VERSION >= 0x00020000

File: ASProcs.h
Line: 386
ASFixedDiv() 
Product availability: All
Platform availability: All

Syntax

ASFixed ASFixedDiv(ASFixed a, ASFixed b)

Divides two fixed numbers.

Parameters

a — 

The dividend.

 
b — 

The divisor.

Returns

The quotient a / b.

See Also

Since

PI_ACROSUPPORT_VERSION >= 0x00020000

File: ASProcs.h
Line: 349
ASFixedMatrixConcat() 
Product availability: All
Platform availability: All

Syntax

void ASFixedMatrixConcat(ASFixedMatrixP result, const ASFixedMatrix* m1, const ASFixedMatrix* m2)

Multiplies two matrices.

Parameters

result — 

(Filled by the method) A pointer to matrix m2 x m1. It is allowed for the result to point to the same location as either m1 or m2.

 
m1 — 

A pointer to the ASFixedMatrix value for the first matrix to multiply.

 
m2 — 

A pointer to the ASFixedMatrix value for the second matrix to multiply.

See Also

Since

PI_ACROSUPPORT_VERSION >= 0x00020000

File: ASProcs.h
Line: 411
ASFixedMatrixInvert() 
Product availability: All
Platform availability: All

Syntax

void ASFixedMatrixInvert(ASFixedMatrixP result, const ASFixedMatrixP m)

Inverts a matrix.

If a matrix is nearly singular (which means that it has a determinant that is nearly zero), inverting and re-inverting the matrix may not yield the original matrix.

Parameters

result — 

(Filled by the method) A pointer to m-1. It is allowed for the result to point to the same location as m.

 
m — 

A pointer to the ASFixedMatrix to invert.

See Also

Since

PI_ACROSUPPORT_VERSION >= 0x00020000

File: ASProcs.h
Line: 432
ASFixedMatrixTransform() 
Product availability: All
Platform availability: All

Syntax

void ASFixedMatrixTransform(ASFixedPointP result, const ASFixedMatrixP m, const ASFixedPointP p)

Transforms the point p through the matrix m, and puts the result in result. p and result can point to the same location.

Parameters

result — 

(Filled by the method) A pointer to the ASFixedPoint containing the result of transforming p through m. It is allowed for the result to point to the same location as m.

 
m — 

A pointer to the ASFixedMatrix through which p is transformed.

 
p — 

A pointer to the ASFixedPoint representing the point to transform through m.

See Also

Since

PI_ACROSUPPORT_VERSION >= 0x00020000

File: ASProcs.h
Line: 458
ASFixedMatrixTransformRect() 
Product availability: All
Platform availability: All

Syntax

void ASFixedMatrixTransformRect(ASFixedRectP result, const ASFixedMatrixP m, const ASFixedRectP r)

Transforms a rectangle through a matrix.

Parameters

result — 

(Filled by the method) A pointer to the ASFixedRect containing the smallest bounding box for the transformed rectangle. It is allowed for the result to point to the same location as m. result will always have bottom < top and left < right.

 
m — 

A pointer to the ASFixedMatrix containing the matrix through which r is transformed.

 
r — 

A pointer to the ASFixedRect containing the rectangle to transform through m.

See Also

Since

PI_ACROSUPPORT_VERSION >= 0x00020000

File: ASProcs.h
Line: 485
ASFixedMul() 
Product availability: All
Platform availability: All

Syntax

ASFixed ASFixedMul(ASFixed a, ASFixed b)

Multiplies two fixed numbers.

Parameters

a — 

The first number to multiply.

 
b — 

The second number to multiply.

Returns

The product of a and b.

See Also

Since

PI_ACROSUPPORT_VERSION >= 0x00020000

File: ASProcs.h
Line: 330
ASFixedToCString() 
Product availability: All
Platform availability: All

Syntax

void ASFixedToCString(ASFixed f, char* s, os_size_t maxLength, ASSmallCount precision)

Converts a fixed number to a CString.

Parameters

f — 

The fixed number to convert.

 
s — 

(Filled by the method) The string corresponding to f.

 
maxLength — 

The maximum number of characters that s can contain.

 
precision — 

The number of digits to retain in the converted number.

See Also

Since

PI_ACROSUPPORT_VERSION >= 0x00020000

File: ASProcs.h
Line: 369
ASFixedToFloat() 
Product availability: All
Platform availability: All

Syntax

float ASFixedToFloat(ASFixed inASFixed)

Converts an ASFixed to a float.

Parameters

inASFixed — 

IN The ASFixed value to convert.

Returns

The float representation of the ASFixed value.


File: ASProcs.h
Line: 2597
FloatToASFixed() 
Product availability: All
Platform availability: All

Syntax

ASFixed FloatToASFixed(double inFloat)

Converts a float to an ASFixed value.

Parameters

inFloat — 

IN The float value to convert.

Returns

The ASFixed representation of the float value.


File: ASProcs.h
Line: 2606