I wish to calculate the square root of a number which had more than 15 digits if possible for 100 digits it would be great
number like 100000000000000
Currently i am using C with integer as data type
int IsPerfectSquare(int number)
{
if (number< 0)
return 0;
int root = (round(sqrt(number)));
if(number == (root * root))
{
return 1;
}
else
{
return 0;
}
}
But does double or long double can hold 15 digits or more
Language is no bar. I can code in C# as well
Thanks :)