🛠️ToolsShed

환율 변환기

주요 세계 통화를 기준 환율로 변환합니다.

참고 환율 — 금융 거래에 사용하지 마세요.

2025년 중반 기준 참고 환율 (USD 기준)

통화 변환기는 최신 환율을 사용하여 세계 통화 간에 금액을 변환합니다. 국제 여행 계획, 국경 간 구매, 외국 급여 이해, 다중 통화 수익으로 사업 관리 등 어떤 경우에도 이 도구가 빠르고 정확한 변환을 제공합니다.

드롭다운에서 원본 및 대상 통화를 선택하고 금액을 입력하면 변환된 값이 즉시 계산됩니다. 환율은 신뢰할 수 있는 금융 데이터 소스에서 가져오고 정기적으로 업데이트되어 결과가 현재 시장 환율을 반영합니다.

표시된 환율은 중간 환율(매수 및 매도 환율의 중간점)임을 명심하세요. 은행, 신용카드, 환전소는 일반적으로 중간 환율에 마진이나 수수료를 추가하므로 실제 환전 비용이 약간 더 높을 수 있습니다.

자주 묻는 질문

코드 구현

def convert_currency(amount, from_rate_to_usd, to_rate_to_usd):
    """
    Convert amount between two currencies via USD as the base.
    Rates are expressed as 'units per 1 USD'.
    e.g. EUR/USD = 0.92 means from_rate_to_usd=1 (USD), to_rate_to_usd=0.92 (EUR)
    """
    amount_in_usd = amount / from_rate_to_usd
    return amount_in_usd * to_rate_to_usd

def build_rate_table(rates_vs_usd: dict, base="USD"):
    """
    Build a cross-rate table from rates expressed against USD.
    rates_vs_usd: {"EUR": 0.92, "GBP": 0.79, "JPY": 150.5, ...}
    """
    if base != "USD":
        base_rate = rates_vs_usd[base]
        rates_vs_usd = {k: v / base_rate for k, v in rates_vs_usd.items()}
        rates_vs_usd["USD"] = 1 / base_rate

    def get_rate(from_ccy, to_ccy):
        return rates_vs_usd[to_ccy] / rates_vs_usd.get(from_ccy, 1)

    return get_rate

# Example rates (illustrative, not live)
rates = {"USD": 1.0, "EUR": 0.92, "GBP": 0.79, "JPY": 150.5, "CAD": 1.36}

get_rate = build_rate_table(rates)

amount = 1000  # USD
for ccy in ["EUR", "GBP", "JPY", "CAD"]:
    converted = amount * get_rate("USD", ccy)
    print(f"${amount} USD = {converted:,.2f} {ccy}  (rate: {get_rate('USD', ccy):.4f})")

# Round-trip check
print(f"\nRound-trip: $1000 USD -> EUR -> USD = ${1000 * get_rate('USD', 'EUR') * get_rate('EUR', 'USD'):.4f}")

Comments & Feedback

Comments are powered by Giscus. Sign in with GitHub to leave a comment.