import math


def truncate(x:float)->int:
    """
    Float to int truncating for possitive and negative values.
    x - float to be truncated.
    return truncated int.
    """
    return math.floor(x) if x<0 else math.ceil(x)