import math


def area(r: float) -> float:
    """
    Calculate the area of a circle based on the radius.
    :param r: The radius of the circle: Float
    :return: The area of the circle: Float
    """
    return math.pi * (r ** 2)