WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
204836
Fix CalcExpressionOperation::evaluate() to use doubles
https://bugs.webkit.org/show_bug.cgi?id=204836
Summary
Fix CalcExpressionOperation::evaluate() to use doubles
Simon Fraser (smfr)
Reported
2019-12-03 20:42:36 PST
We should use double-precision math.
Attachments
Add attachment
proposed patch, testcase, etc.
Simon Fraser (smfr)
Comment 1
2019-12-03 21:35:36 PST
Actually Length stores a float, so we might as well do these calculations in floats. This is a bit weird, because math done at parsing time will happen in doubles, but math done at used value time will be done in floats.
Sam Weinig
Comment 2
2019-12-04 11:13:02 PST
(In reply to Simon Fraser (smfr) from
comment #1
)
> Actually Length stores a float, so we might as well do these calculations in > floats. This is a bit weird, because math done at parsing time will happen > in doubles, but math done at used value time will be done in floats.
Does the spec specify which should be used?
Simon Fraser (smfr)
Comment 3
2019-12-04 11:50:31 PST
No but there's talk of doing so:
https://twitter.com/starsandrobots/status/1199757377286754309
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug