Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is maximum number value of quint64 in Qt? [duplicate]

Tags:

qt

Possible Duplicate:
Where are the limits for Qt types?

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

Is there any equal macro for quint64?

like image 601
sayyed mohsen zahraee Avatar asked Jan 07 '13 16:01

sayyed mohsen zahraee


1 Answers

You can find an 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 this way:

2^64-1 = 18446744073709551615

As it was told here, you can get the same result by including #include <limits>, and the output result of

std::numeric_limits<quint64>::max();
like image 121
tro Avatar answered Nov 15 '22 09:11

tro