Scale val
by the rational number num
/ denom
, avoiding overflows and underflows and without loss
of precision.
This function can potentially be very slow if val and num are both greater than G_MAXUINT32.
val |
the number to scale |
num |
the numerator of the scale ratio |
denom |
the denominator of the scale ratio |
|