fn setFloatString(self: *Rational, str: []const u8) !void

Set a Rational from a string of the form A/B where A and B are base-10 integers.

Parameters

self: *Rational,
str: []const u8,