NT Script: Difference between revisions
Division isn't broken
imported>Oranges m (Add math operators, including a note about division) |
imported>Oranges (Division isn't broken) |
||
Line 380: | Line 380: | ||
=== Chat calculator === | === Chat calculator === | ||
A simple chat calculator | A simple chat calculator.<br> | ||
Type "/calc 1+1" in chat and watch the magic happen. | Type "/calc 1+1" in chat and watch the magic happen. NB: division is not implemented due to budget cuts. | ||
$expld1 = explode($content, " "); | $expld1 = explode($content, " "); | ||
if(at($expld1, 1) == "/calc") | if(at($expld1, 1) == "/calc") |