Bug 106179 - Number.MIN_VALUE should take support for denormal numbers into account
Summary: Number.MIN_VALUE should take support for denormal numbers into account
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2013-01-05 09:01 PST by Dominic Szablewski
Modified: 2013-01-07 11:05 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dominic Szablewski 2013-01-05 09:01:27 PST
When running JSC in a process without support for denormal numbers (default on iOS6) Number.MIN_VALUE gets round down to 0, which is not very helpful.

If denormal numbers are supported MIN_VALUE should return 5E-324, or 2.2250738585072014E-308 (DBL_MIN) otherwise.
Comment 2 Geoffrey Garen 2013-01-07 11:04:56 PST
I think std::numeric_limits<double>::denorm_min() would be better here.
Comment 3 Geoffrey Garen 2013-01-07 11:05:17 PST
<rdar://problem/12966887>