Original Post
How can I check a float if it isn''t an integer?
What i want to do is check if a float is a power of 2:
bool IsPowerOf2(unsigned int nInput)
{
float fPower = log10(nInput) / log10(2);
// Check if fPower is an integer
???????????????????????????????????
}
or is this impossible due to round-off errors?
----------
Drago