from typing import Union


def _print_result(
    start_quantity: Union[int, float],
    start_unit: str,
    end_unit: str,
    end_quantity: Union[int, float],
) -> str:
    """
    Function to create final output string for conversion.

    :param start_quantity: Integer or float starting quantity which needed conversion.
    :param start_unit: Initial unit type of integer or float starting quantity.
    :param end_unit: Ending unit type of integer or float quantity.
    :param end_quantity: Integer or float of converted starting quantity from start unit to end unit.
    :return: String of values concatenated in user friendly message.
    """
    if end_quantity < 0.000001:
        output = "Value smaller than decimal precision 6. Cannot output."
    else:
        output = f"```{start_quantity} {start_unit} = {end_quantity} {end_unit}```"
    return output