What is the maximum numerical value of quint64 in Qt?

Possible duplicate:
Where are the restrictions for Qt types?

I need the maximum number of quint64, for example, we have a macro for ulong ULONG_MAX

Is there an equal macro for quint64?

+4
source share
1 answer

You can find the answer in the official documentation:

quint64 is a typedef for unsigned long long int ( unsigned __int64 on Windows). This type is guaranteed to be 64-bit on all platforms supported by Qt.

So quint64 is a 64-bit type for unsigned integers. We can find its maximum value in this way: 2^64-1 = 18446744073709551615 .

Since it was Tald here , you can get the same result by including #include <limits> and display the result

 std::numeric_limits<quint64>::max(); 
+13
source

All Articles