fn setFloat(self: *Rational, comptime T: type, f: T) !void

Set a Rational from a floating-point value. The rational will have enough precision to completely represent the provided float.

Parameters

self: *Rational,
T: type,
f: T,