Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(537)

Unified Diff: lib/math/base.dart

Issue 11227042: isEven, isOdd, isNegative, isMaxValue, isMinValue, isInfinite, isPositive, isSingleValue. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase. Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/math/base.dart
diff --git a/lib/math/base.dart b/lib/math/base.dart
index 72caa21e45431bf6d2a6505a93ea64bfc36c2721..b2e7fae5a5b7e6c3c6d12f862304e1d318e3c4c0 100644
--- a/lib/math/base.dart
+++ b/lib/math/base.dart
@@ -80,7 +80,7 @@ num min(num a, num b) {
}
}
// Check for NaN and b == -0.0.
- if (a == 0 && b.isNegative() || b.isNaN()) return b;
+ if (a == 0 && b.isNegative || b.isNaN) return b;
return a;
}
return a;
@@ -117,11 +117,11 @@ num max(num a, num b) {
}
}
// Check for NaN.
- if (b.isNaN()) return b;
+ if (b.isNaN) return b;
return a;
}
// max(-0.0, 0) must return 0.
- if (b == 0 && a.isNegative()) return b;
+ if (b == 0 && a.isNegative) return b;
return a;
}
throw new ArgumentError(b);
« lib/core/int.dart ('K') | « lib/core/num.dart ('k') | pkg/fixnum/int32.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698