 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 = [

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

exports.LayerStyle =



		return css.join(" ")

	webkitTransform: (layer) ->
		# We have a special rendering path for layers that prefer 2d rendering.
		# This definitely decreases performance, but is handy in complex drawing
		# scenarios with rounded corners and shadows where gpu drawing gets weird
