1 | static void ai_spec_compareNumbers_triple(S s) {
|
2 | T3<S> t = ai_parseTriple(s); |
3 | if (t == null || !eqic(t.b, "is bigger than?")) ret; |
4 | S a = t.a, b = t.c; |
5 | if (isInteger(a) && isInteger(b)) {
|
6 | int cmp = bigint(a).compareTo(bigint(b)); |
7 | S rel = cmp > 0 ? "is bigger than" : "is not bigger than"; |
8 | ai_postTriple(a, rel, b); |
9 | } |
10 | } |
Began life as a copy of #1012016
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1012037 |
| Snippet name: | ai_spec_compareNumbers_triple |
| Eternal ID of this version: | #1012037/1 |
| Text MD5: | 7770e1e4ace2daa4f8df59fd929fc278 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-11-16 07:03:37 |
| Source code size: | 348 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 648 / 710 |
| Referenced in: | [show references] |