Category talk:Wren-rat: Difference between revisions

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.trim().trimEnd("0"))
}
 
9,483

edits