from typing import Union


def almost_equal(a: Union[int, float], b: Union[int, float], places=3) -> float:
    """
    Returns True or False if the number a and b are are equal inside the
    decimal places "places".
    """
    return round(abs(a - b), places) == 0