Utils.fractionAdd

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

struct Utils
static
bool
fractionAdd
(
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

resD int

Pointer to gint to hold the result denominator

Return Value

Type: bool

FALSE on overflow, TRUE otherwise.