 filterFormat = (value, unit) ->
 	"#{Utils.round value, 2}#{unit}"
 	# "#{value}#{unit}"
+
+roundToZero = (num) ->
+	if (-1e-6 < num && num < 1e-6)
+		return 0
+	return num
+
 
 # TODO: Ideally these should be read out from the layer defined properties
 _WebkitProperties = [

			if layer._properties[p] isnt v
				console.warn "Layer property '#{p}'' will be ignored with force2d enabled"

		css.push "translate(#{@_roundToZero layer._properties.x}px,#{@_roundToZero layer._properties.y}px)"
		css.push "scale(#{@_roundToZero layer._properties.scale})"
		css.push "skew(#{@_roundToZero layer._properties.skew}deg,#{@_roundToZero layer._properties.skew}deg)"
		css.push "rotate(#{@_roundToZero layer._properties.rotationZ}deg)"

		return css.join(" ")


	"skewY": 0
	"rotationX": 0
	"rotationY": 0


exports.LayerStyle =

