Four is magic: Difference between revisions
Content added Content deleted
m (→{{header|JavaScript}}: Added a test for implementation of BigInt (absent for example from JavaScriptCore at the macOS Catalina level)) |
(→{{header|Wren}}: Potential bug fix, results unaffected.) |
||
Line 2,201: | Line 2,201: | ||
t = t + small[(n/100).floor] + " hundred" |
t = t + small[(n/100).floor] + " hundred" |
||
var s = n % 100 |
var s = n % 100 |
||
System.write("") // guards against VM recursion bug |
|||
if (s > 0) t = t + " " + say.call(s) |
if (s > 0) t = t + " " + say.call(s) |
||
} else { |
} else { |
||
Line 2,209: | Line 2,210: | ||
n = (n/1000).floor |
n = (n/1000).floor |
||
if (p > 0) { |
if (p > 0) { |
||
System.write("") // guards against VM recursion bug |
|||
var ix = say.call(p) + illions[i] |
var ix = say.call(p) + illions[i] |
||
if (sx != "") ix = ix + " " + sx |
if (sx != "") ix = ix + " " + sx |