Is there a very quick way to check if N is an ideal square in C ++?

Possible duplicate:
The fastest way to determine if the square root of an integer is an integer

Is there a very quick way to check if Nan ideal square is in C ++? I use this:

if (sqrt(N)==floor(sqrt(N)));

but i need something faster.

+5
source share

All Articles