function fvFormatMath(scale, digits)
{
	this.scale = scale;
	this.digits = digits;
}


fvFormatMath.prototype.unformat = function(value)
{
	return (parseFloat(value) * (this.scale));
}

fvFormatMath.prototype.format = function(value)
{
	return (Math.round((value / this.scale) * Math.pow(10, this.digits)) / Math.pow(10, this.digits));
}