-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.closed-as-intendedClosed as the reported issue is expected behaviorClosed as the reported issue is expected behavior
Description
This issue was originally filed by garysweave...@gmail.com
Dart should not report a number divided by zero as infinity. And if infinity is allowed, math using infinity should be correct.
What steps will reproduce the problem?
- Use the following code:
main() {
print(1 / 0);
print((1 / 0) / (1 / 0));
}
What is the expected output? What do you see instead?
It should report:
NaN
NaN
Instead it reports:
Infinity
NaN
What version of the product are you using? On what operating system?
Using the following on Oct 10, 2011 15:50 EDT
http://www.dartlang.org/docs/getting-started/
Please provide any additional information below.
Metadata
Metadata
Assignees
Labels
area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.closed-as-intendedClosed as the reported issue is expected behaviorClosed as the reported issue is expected behavior