Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

[SOLVED] convert binary number to qtint64

$
0
0
hi , i need to change this a 50bit number to qint64 but i always return 0 its my code : QString num = "11111111111111111111111111111111111111111111111111"; qint64 nn ; bool ok; nn = num.toLong(&ok , 2); qDebug() << "nummmm " << nn; nn is 0 , why it cant cast this number to qint64 ? ty

Viewing all articles
Browse latest Browse all 18427

Trending Articles