def bolt_grade2stress(bolt_grade):
    """
    Convert bolt grade to yield and ultimate stress.

    Standard designation for bolt grade as a decimal is converted to yield and ultimate stress values in MPa. In the
    standard bolt grade designation, the integer part of the number represents the ultimate stress in MPa/100 and the
    decimal part is the yield stress as a percentage of the ultimate (e.g 4.6 is f_u = 400, f_y = 400 * 0.6 = 240).

    Parameters
    ----------
    bolt_grade : float

    Returns
    -------
    tuple : (f_ultimate, f_yield)
    """
    f_ultimate = 100 * divmod(bolt_grade, 1)[0]
    f_yield = round(f_ultimate * divmod(bolt_grade, 1)[1])
    return f_ultimate, f_yield
