function fvFormatInt(direction)
{
	this.direction = direction;
}


fvFormatInt.prototype.unformat = function(value)
{
	return fvFormat.zeroDefault(parseInt(fvFormat.removeCommas(value)));
}

fvFormatInt.prototype.format = function(value)
{
	if(this.direction > 0)
	{
		return Math.ceil(value);
	}
	else if(this.direction < 0)
	{
		return Math.floor(value);
	}
	else
	{
		return Math.round(value);
	}
}