Category talk:Wren-rat: Difference between revisions
→Source code: Bug fix.
m (→Source code: Added quotes to 'lang' attribute.) |
(→Source code: Bug fix.) |
||
Line 87:
static fromString(s) {
var n
s = s.trim()
if (!(n = Num.fromString(s))) Fiber.abort("Argument must be a numeric string.")
if (n.isInteger) return Rat.new(n, 1)
return fromDecimalString_(s
}
|