- From: Martin Thomson <martin.thomson@gmail.com>
- Date: Wed, 26 Mar 2014 19:32:21 -0700
- To: cowwoc <cowwoc@bbs.darktech.org>
- Cc: "public-media-capture@w3.org" <public-media-capture@w3.org>
On 26 March 2014 19:27, cowwoc <cowwoc@bbs.darktech.org> wrote: > I mean what is the error margin between the expected and the available > aspect ratio? Pretty small. I expect that we'll have to allow a small tolerance for this when doing comparisons, i.e., if (aspectRatio > desiredRatio - QUANTM && aspectRatio < desiredRatio + QUANTM) { ... Rather than if (aspectRatio === desiredRatio) { ... But that's pretty commonplace when dealing with floating point values anyway.
Received on Thursday, 27 March 2014 02:32:48 UTC