Template:ModCalculator

This is a simple math function to put a '+' in front of a positive number, and to do nothing in front of a negative. Pass it a number in the first variable slot, and it will return a string (with a plus or minus sign in front). So, something like   gives ,    gives , and    gives .

See also the string version, which is identical to this one but produces a string instead of a number, or the mod calculator, which takes an ability score plus up to three modifiers and calculates the total modifier.