Spelling of ordinal numbers: Difference between revisions

(→‎{{header|jq}}: vigintillion)
(→‎{{header|jq}}: Remove ###)
Line 957:
9007199254740993, # too large for jq
# 1e63 is vigintillion so gojq should be able to handle 999 * 1e63
999000000000000000000000000000000000000000000000000000000000000000,
# ... but not 1000 vigintillion
1000000000000000000000000000000000000000000000000000000000000000000
)
| "\(lpad(10)) => \(sayOrdinal)"
</syntaxhighlight>
{{output}}
The output using gojq is shown first. The tail of the output
using jq is then shown to illustrate what happens when the program
determines the given integer is too large for jq's built-in support
for integer arithmetic.
 
{{output}}
###'''Using gojq'''
<pre>
1 => first
Line 990 ⟶ 991:
gojq: error: 66 zeros is beyond the scope of this exercise
</pre>
### '''Tail of output using the C implementation'''
<pre>
2000000000000 => two trillionth
2,478

edits