X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bb32406153a194de2bb488c54a11e12b184cf5bc..f2b6dd8c508ddc1ebfee5b7d6e68a44b4e05a50f:/interface/wx/math.h diff --git a/interface/wx/math.h b/interface/wx/math.h index 348d2b9816..d7c184caea 100644 --- a/interface/wx/math.h +++ b/interface/wx/math.h @@ -3,7 +3,7 @@ // Purpose: interface of global functions // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @addtogroup group_funcmacro_math */ @@ -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); + //@}