From c1009b93fd95191cc7e2f52b9a259f3a7d0035cb Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Mon, 12 Jan 2009 10:58:26 +0000 Subject: [PATCH] Also mention wxRound() and wxIsSameDouble() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58035 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/math.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/interface/wx/math.h b/interface/wx/math.h index 348d2b9816..f161087063 100644 --- a/interface/wx/math.h +++ b/interface/wx/math.h @@ -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); + //@} -- 2.45.2