fixedPrecision

Created on Mon May 22 11:44:30 2017

@author: bob

fixedPrecision.to_precision(x, p)

returns a string representation of x formatted with a precision of p

Based on the webkit javascript implementation taken from here: https://code.google.com/p/webkit-mirror/source/browse/JavaScriptCore/kjs/number_object.cpp