On Tue, Oct 9, 2012 at 10:16 AM, Anthony Jones <ajo...@mozilla.com> wrote:

> This formats the float to 6 significant figures, however a float has 7.2
> significant figures[1]. A float can contain any integer up to 2^24.
> Anything more than 999,999 pixels shows in exponent format as 1e+6 and so
> on. Currently co-ordinates are limited to nscoord_MAX = 2^30. This works
> out at 2^24 * 64 / 60 which is slightly more than a float can hold.
> Changing AppendFloat to 7 digits of precision breaks tests that assume 6
> digits of precision.
>

Which tests?

We should certainly output with all available precision.
nsROCSSPrimitiveValue::GetCssText should work with doubles since that seems
to be necessary.

Rob
-- 
“You have heard that it was said, ‘Love your neighbor and hate your enemy.’
But I tell you, love your enemies and pray for those who persecute you,
that you may be children of your Father in heaven. ... If you love those
who love you, what reward will you get? Are not even the tax collectors
doing that? And if you greet only your own people, what are you doing more
than others?" [Matthew 5:43-47]
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to