This works for me: sendChat('','[[(ceil((15-15)/1e100)*ceil((15-15)/2)*((ceil((15-30)/1e100)-1)*(-1)))+(ceil((15-30)/1e100)*(8))+2]]',function(r){
AaronsDebugFunction(r);
});
and produces this: [
. {
. . "who": "",
. . "type": "general",
. . "content": "$$[[1]]",
. . "playerid": "API",
. . "avatar": false,
. . "inlinerolls": {
. . . "1": {
. . . . "expression": "(ceil((15-15)/1e100)*ceil((15-15)/2)*((ceil((15-30)/1e100)-1)*(-1)))+(ceil((15-30)/1e100)*(8))+2",
. . . . "results": {
. . . . . "type": "V",
. . . . . "rolls": [
. . . . . . {
. . . . . . . "type": "M",
. . . . . . . "expr": "(ceil((15-15)/1e+100)*ceil((15-15)/2)*((ceil((15-30)/1e+100)-1)*(-1)))+(ceil((15-30)/1e+100)*(8))+2"
. . . . . . }
. . . . . ],
. . . . . "resultType": "M",
. . . . . "total": 2
. . . . }
. . . }
. . }
. }
] Which has the correct value of 2 .