W3C home > Mailing lists > Public > public-fx@w3.org > January to March 2013

Re: [css3-transitions] Where does SMIL/SVG Animation define interpolation of integers?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 5 Feb 2013 07:01:05 -0800
Message-ID: <CAAWBYDChvuteqFsBb1qjOi4bzb8TBc5xEtGQK2k1tD1C=R7RXA@mail.gmail.com>
To: Brian Birtles <bbirtles@mozilla.com>
Cc: "public-fx@w3.org" <public-fx@w3.org>
On Tue, Feb 5, 2013 at 3:29 AM, Brian Birtles <bbirtles@mozilla.com> wrote:
>   coerced-integer-value = Math.floor( interpolated-value + 0.5 )

So .5 rounds toward positive infinity.

~TJ
Received on Tuesday, 5 February 2013 15:01:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 5 February 2013 15:01:53 GMT