Arithmetic evaluation: Difference between revisions
m
→{{header|Sidef}}: minor code simplifications
m (→{{header|Sidef}}: modified code to work with Sidef 2.10) |
m (→{{header|Sidef}}: minor code simplifications) |
||
Line 4,676:
var b = s.split('-');
b.len == 3 ? (-1*b[1].to_num - b[2].to_num)
}
Line 4,689 ⟶ 4,688:
var reAS = /(-?\d+\.?\d*\s*[+-]\s*[+-]?\d+\.?\d*)/;
while (var match
}
while (var match =
}
Line 4,710 ⟶ 4,706:
s.split!.join!('').sub!(/^\+/,'');
while (var match
}
|