static void ai_spec_compareNumbers_triple(S s) {
T3<S> t = ai_parseTriple(s);
if (t == null || !eqic(t.b, "is bigger than?")) ret;
S a = t.a, b = t.c;
if (isInteger(a) && isInteger(b)) {
int cmp = bigint(a).compareTo(bigint(b));
S rel = cmp > 0 ? "is bigger than" : "is not bigger than";
ai_postTriple(a, rel, b);
}
}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: | 899 / 943 |
| Referenced in: | [show references] |