]> git.saurik.com Git - wxWidgets.git/commitdiff
Also mention wxRound() and wxIsSameDouble()
authorRobert Roebling <robert@roebling.de>
Mon, 12 Jan 2009 10:58:26 +0000 (10:58 +0000)
committerRobert Roebling <robert@roebling.de>
Mon, 12 Jan 2009 10:58:26 +0000 (10:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58035 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/wx/math.h

index 348d2b981638584a1a60a3e2d304ee60172e21ad..f1610870634d22a6cb252714ebe0cbd7387dea5c 100644 (file)
@@ -43,5 +43,23 @@ wxFloat64 wxConvertFromIeeeExtended(const wxInt8 *bytes);
 */
 void wxConvertToIeeeExtended(wxFloat64 num, wxInt8 *bytes);
 
+/**
+    Small wrapper around round().
+*/
+int wxRound(double x);
+
+/** 
+   Returns true if both double values are identical. This is
+   only reliable if both values have been assigned the same
+   value.
+*/
+bool wxIsSameDouble(double x, double y);
+
+/**
+   Return true of @a x is exactly zero. This is only reliable
+   if it has been assigned 0.
+*/
+bool wxIsNullDouble(double x);
+
 //@}