Spaces:
Runtime error
Runtime error
def format_conversion_result(date, from_currency, to_currency, rate, from_amount, to_amount, inverse_rate): | |
return f""" | |
The conversion rate on {date} from {from_currency} to {to_currency} was {rate:.5f}. | |
So {from_amount:.1f} in {from_currency} corresponds to {to_amount:.2f} in {to_currency}. | |
The inverse rate was {inverse_rate:.4f}. | |
""" | |