thinkthroughmath/mathjs-rest — pull request #2 by ninjapanzer (2014-11-17 21:49:36+00:00)
Title: pass actual precision and notation to the format function

what we were doing was keeping 2 significant digits which is not the same
as keeping decimal precision.
From http://mathjs.org/docs/reference/functions/format.html
Old Code: math.format(21385, 2); // returns '21000'
New Code: math.format(2.3, {notation: 'fixed', precision: 2}); // returns '2.30'