Utils.doubleToFraction

Transforms a gdouble to a fraction and simplifies the result.

class Utils
static
void
doubleToFraction
(
double src
,
out int destN
,
out int destD
)

Parameters

src double

gdouble to transform

destN int

pointer to a gint to hold the result numerator. out

destD int

pointer to a gint to hold the result denominator. out

Meta