X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae3c17b4013e80b99976c750c19fca47729517f6..107ea8f0694830232c7df4a1568b707111c04649:/interface/wx/math.h?ds=sidebyside diff --git a/interface/wx/math.h b/interface/wx/math.h index e60620eaa5..348d2b9816 100644 --- a/interface/wx/math.h +++ b/interface/wx/math.h @@ -6,7 +6,7 @@ // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// -/** @ingroup group_funcmacro_math */ +/** @addtogroup group_funcmacro_math */ //@{ /** @@ -24,5 +24,24 @@ int wxFinite(double x); */ bool wxIsNaN(double x); +/** + Converts the given array of 10 bytes (corresponding to 80 bits) to + a float number according to the IEEE floating point standard format + (aka IEEE standard 754). + + @see wxConvertToIeeeExtended() to perform the opposite operation +*/ +wxFloat64 wxConvertFromIeeeExtended(const wxInt8 *bytes); + +/** + Converts the given floating number @a num in a sequence of 10 bytes + which are stored in the given array @a bytes (which must be large enough) + according to the IEEE floating point standard format + (aka IEEE standard 754). + + @see wxConvertFromIeeeExtended() to perform the opposite operation +*/ +void wxConvertToIeeeExtended(wxFloat64 num, wxInt8 *bytes); + //@}