added wxLongLong::ToDouble()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35323 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-08-28 00:03:30 +00:00
parent 0f71b9da7f
commit e7aaf2dedd
4 changed files with 45 additions and 0 deletions

View File

@@ -134,6 +134,19 @@ wxLongLongWx& wxLongLongWx::Assign(double d)
return *this;
}
double wxLongLongWx::ToDouble() const
{
double d = m_hi;
d *= 1.0 + (double)ULONG_MAX;
d += m_lo;
#ifdef wxLONGLONG_TEST_MODE
wxASSERT( d == m_ll );
#endif // wxLONGLONG_TEST_MODE
return d;
}
wxLongLongWx wxLongLongWx::operator<<(int shift) const
{
wxLongLongWx ll(*this);