Utils.doubleToFraction

Transforms a gdouble to a fraction and simplifies the result.

struct 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

destD int

pointer to a gint to hold the result denominator