Function numbers_rus::integers::base::base::is_perfect_square
source · pub fn is_perfect_square(number: i128) -> boolExpand description
is_perfect_square function: Takes an i128 integer number as input and returns a boolean indicating whether number
is a perfect square or not. The function calculates the square root of the input number, rounds it to the nearest integer value, and
then checks if the result squared is equal to the original number. If they are equal, it returns true; otherwise, it returns false.