tssing Posted June 19, 2008 Share Posted June 19, 2008 TestBit(0x80000000,31) out of range,,,Please fix it .. 0x80000000&2^31 also out of range,,,Please fix it.. It make me very trouble,, Link to comment Share on other sites More sharing options...
AzeoTech Posted June 19, 2008 Share Posted June 19, 2008 Like the 0x, TestBit, ClearBit and SetBit are limited to 2^31, or 0x7fffffff. If your value is limited to 32 bits, you can easily test for the 32nd bit by simply doing: value > 0x7fffffff Link to comment Share on other sites More sharing options...
tssing Posted June 20, 2008 Author Share Posted June 20, 2008 Can you update to 2^64 bit? In many place will be use 2^64 bit... Link to comment Share on other sites More sharing options...
AzeoTech Posted June 20, 2008 Share Posted June 20, 2008 Alas, no. Internally all numbers are stored as a 64 bit floating point value. A 64 bit integer does not fit in a 64 bit floating point. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.