Utils.fractionMultiply

Multiplies the fractions a_n/a_d and b_n/b_d and stores the result in res_n and res_d.

class Utils
static
int
fractionMultiply
(
int aN
,
int aD
,
int bN
,
int bD
,
out int resN
,
out int resD
)

Parameters

aN int

Numerator of first value

aD int

Denominator of first value

bN int

Numerator of second value

bD int

Denominator of second value

resN int

Pointer to gint to hold the result numerator. out

resD int

Pointer to gint to hold the result denominator. out

Return Value

Type: int

FALSE on overflow, TRUE otherwise.

Meta