100 Cent เท่ากับกี่บาท
100 Cent เท่ากับ 1 Dollar (USD) ดังนั้น 100 Cent เท่ากับประมาณ 34-36 บาท อัตราแลกเปลี่ยนเปลี่ยนแปลงทุกวัน ตรวจสอบอัตราล่าสุดที่ธนาคารแห่งประเทศไทย
| จำนวน Cent | เท่ากับ Dollar | เท่ากับบาท (โดยประมาณ) |
|---|---|---|
| 1 Cent | $0.01 | 0.34-0.36 บาท |
| 5 Cents | $0.05 | 1.70-1.80 บาท |
| 10 Cents | $0.10 | 3.40-3.60 บาท |
| 25 Cents | $0.25 | 8.50-9.00 บาท |
| 50 Cents | $0.50 | 17.00-18.00 บาท |
| 100 Cents | $1.00 | 34.00-36.00 บาท |
คำนวณอัตราแลกเปลี่ยน
# exchange_rate.py — Currency Exchange Calculator
from dataclasses import dataclass
from typing import Dict
@dataclass
class Currency:
code: str
name_th: str
name_en: str
subunit: str
subunit_count: int # จำนวนหน่วยย่อยต่อ 1 หน่วยใหญ่
currencies = {
"USD": Currency("USD", "ดอลลาร์สหรัฐ", "US Dollar", "Cent", 100),
"EUR": Currency("EUR", "ยูโร", "Euro", "Cent", 100),
"GBP": Currency("GBP", "ปอนด์สเตอร์ลิง", "British Pound", "Penny", 100),
"JPY": Currency("JPY", "เยนญี่ปุ่น", "Japanese Yen", "Sen", 100),
"CNY": Currency("CNY", "หยวนจีน", "Chinese Yuan", "Fen", 100),
"THB": Currency("THB", "บาทไทย", "Thai Baht", "สตางค์", 100),
}
# อัตราแลกเปลี่ยนต่อ 1 THB (โดยประมาณ)
rates_to_thb = {
"USD": 35.0,
"EUR": 38.0,
"GBP": 44.0,
"JPY": 0.23,
"CNY": 4.80,
}
class ExchangeCalculator:
def __init__(self, rates: Dict[str, float]):
self.rates = rates
def convert_to_thb(self, amount: float, from_currency: str) -> float:
rate = self.rates.get(from_currency, 0)
return amount * rate
def convert_from_thb(self, thb_amount: float, to_currency: str) -> float:
rate = self.rates.get(to_currency, 0)
if rate == 0:
return 0
return thb_amount / rate
def cents_to_thb(self, cents: int, currency: str = "USD") -> float:
dollars = cents / 100
return self.convert_to_thb(dollars, currency)
calc = ExchangeCalculator(rates_to_thb)
# 100 Cent เท่ากับกี่บาท
print("100 Cent เท่ากับกี่บาท:")
for cents in [1, 5, 10, 25, 50, 100, 500, 1000]:
thb = calc.cents_to_thb(cents)
print(f" {cents} Cents = = {thb:.2f} บาท")
# แปลงสกุลเงินต่างๆเป็นบาท
print(f"\n\nอัตราแลกเปลี่ยน 1 หน่วย = ? บาท:")
for code, rate in rates_to_thb.items():
cur = currencies[code]
print(f" 1 {code} ({cur.name_th}) = {rate:.2f} บาท")
print(f" 100 {cur.subunit} = {rate:.2f} บาท")
ดึงอัตราแลกเปลี่ยน API
# exchange_api.py — Exchange Rate API
# pip install requests
# 1. Free API — exchangerate-api.com
# import requests
#
# url = "https://api.exchangerate-api.com/v4/latest/USD"
# response = requests.get(url)
# data = response.json()
#
# usd_to_thb = data["rates"]["THB"]
# print(f"1 USD = {usd_to_thb} THB")
# print(f"100 Cents = {usd_to_thb} THB")
# 2. Bank of Thailand API
# url = "https://apigw1.bot.or.th/bot/public/Stat-ExchangeRate/v2/DAILY_AVG_EXG_RATE/"
# headers = {"X-IBM-Client-Id": "YOUR_API_KEY"}
# params = {"start_period": "2024-01-15", "end_period": "2024-01-15"}
# response = requests.get(url, headers=headers, params=params)
# 3. Python สำหรับ Monitor อัตราแลกเปลี่ยน
from dataclasses import dataclass, field
from typing import List
from datetime import datetime
@dataclass
class ExchangeRecord:
date: str
currency: str
buying: float
selling: float
mid: float
class RateMonitor:
"""Monitor Exchange Rates"""
def __init__(self):
self.records: List[ExchangeRecord] = []
def add_record(self, record: ExchangeRecord):
self.records.append(record)
def get_trend(self, currency: str) -> str:
rates = [r for r in self.records if r.currency == currency]
if len(rates) < 2:
return "N/A"
last = rates[-1].mid
prev = rates[-2].mid
diff = last - prev
pct = (diff / prev) * 100
if diff > 0:
return f"แข็งค่า +{pct:.2f}%"
else:
return f"อ่อนค่า {pct:.2f}%"
def show(self):
print(f"\n{'='*55}")
print(f"Exchange Rate Monitor")
print(f"{'='*55}")
for r in self.records[-5:]:
print(f" {r.date} | {r.currency} | "
f"Buy: {r.buying:.2f} | Sell: {r.selling:.2f} | "
f"Mid: {r.mid:.2f}")
monitor = RateMonitor()
records = [
ExchangeRecord("2024-01-10", "USD", 34.50, 35.20, 34.85),
ExchangeRecord("2024-01-11", "USD", 34.60, 35.30, 34.95),
ExchangeRecord("2024-01-12", "USD", 34.40, 35.10, 34.75),
ExchangeRecord("2024-01-13", "USD", 34.55, 35.25, 34.90),
ExchangeRecord("2024-01-14", "USD", 34.70, 35.40, 35.05),
]
for r in records:
monitor.add_record(r)
monitor.show()
print(f"\n Trend: {monitor.get_trend('USD')}")
# แหล่งดูอัตราแลกเปลี่ยน
sources = {
"ธนาคารแห่งประเทศไทย": "bot.or.th — อัตราอ้างอิง",
"Google": "Google 'USD to THB' — เร็วสุด",
"XE.com": "xe.com — อัตราตลาดโลก",
"SuperRich": "superrichthailand.com — อัตราแลกเงินสด",
"ธนาคารพาณิชย์": "แอปธนาคาร — อัตราโอน/ซื้อขาย",
}
print(f"\n\nแหล่งดูอัตราแลกเปลี่ยน:")
for source, desc in sources.items():
print(f" {source}: {desc}")
เหรียญและธนบัตร
# coins.py — US Coins and Bills
us_coins = {
"Penny": {"value_cents": 1, "value_thb": 0.35},
"Nickel": {"value_cents": 5, "value_thb": 1.75},
"Dime": {"value_cents": 10, "value_thb": 3.50},
"Quarter": {"value_cents": 25, "value_thb": 8.75},
"Half Dollar": {"value_cents": 50, "value_thb": 17.50},
"Dollar Coin": {"value_cents": 100, "value_thb": 35.00},
}
us_bills = {
"$1": {"value_thb": 35},
"$5": {"value_thb": 175},
"$10": {"value_thb": 350},
"$20": {"value_thb": 700},
"$50": {"value_thb": 1750},
"$100": {"value_thb": 3500},
}
print("US Coins:")
for coin, info in us_coins.items():
print(f" {coin}: {info['value_cents']} Cents = {info['value_thb']:.2f} บาท")
print(f"\nUS Bills:")
for bill, info in us_bills.items():
print(f" {bill} = {info['value_thb']:,} บาท")
# เปรียบเทียบหน่วยย่อยสกุลเงินต่างๆ
subunits = {
"USD Cent": {"per_unit": 100, "thb_per_100": 35.00},
"EUR Cent": {"per_unit": 100, "thb_per_100": 38.00},
"GBP Penny": {"per_unit": 100, "thb_per_100": 44.00},
"JPY Sen": {"per_unit": 100, "thb_per_100": 0.23},
"THB สตางค์": {"per_unit": 100, "thb_per_100": 1.00},
}
print(f"\n\n100 หน่วยย่อย = กี่บาท:")
for name, info in subunits.items():
print(f" 100 {name} = {info['thb_per_100']:.2f} บาท")
เคล็ดลับ
- 100 Cent = 1 Dollar: ประมาณ 34-36 บาท ตามอัตราแลกเปลี่ยน
- Buying vs Selling: Buying Rate ต่ำกว่า Selling Rate ส่วนต่างคือกำไรธนาคาร
- SuperRich: อัตราดีกว่าธนาคารสำหรับแลกเงินสด
- โอนเงิน: ใช้ Wise (TransferWise) อัตราดีกว่าธนาคาร
- ตรวจสอบ: เช็คือัตราหลายแหล่งก่อนแลกเงิน
การนำความรู้ไปประยุกต์ใช้งานจริง
แหล่งเรียนรู้ที่แนะนำ ได้แก่ Official Documentation ที่อัพเดทล่าสุดเสมอ Online Course จาก Coursera Udemy edX ช่อง YouTube คุณภาพทั้งไทยและอังกฤษ และ Community อย่าง Discord Reddit Stack Overflow ที่ช่วยแลกเปลี่ยนประสบการณ์กับนักพัฒนาทั่วโลก
เปรียบเทียบข้อดีและข้อเสีย
จากตารางเปรียบเทียบจะเห็นว่าข้อดีมีมากกว่าข้อเสียอย่างชัดเจน โดยเฉพาะในแง่ของประสิทธิภาพและความสามารถในการ Scale สำหรับข้อเสียส่วนใหญ่สามารถแก้ไขได้ด้วยการเรียนรู้อย่างเป็นระบบและวางแผนทรัพยากรให้เหมาะสม
100 Cent เท่ากับกี่บาท
100 Cent = 1 Dollar ประมาณ 34-36 บาท อัตราแลกเปลี่ยนเปลี่ยนทุกวัน ตรวจสอบที่ธนาคารแห่งประเทศไทย Google USD to THB
Cent คืออะไร
หน่วยย่อย Dollar 100 Cents = 1 Dollar เหมือน 100 สตางค์ = 1 บาท เหรียญ Penny Nickel Dime Quarter Half Dollar
อัตราแลกเปลี่ยนดูที่ไหน
ธนาคารแห่งประเทศไทย Google XE.com OANDA Bloomberg แอปธนาคาร SuperRich Buying Rate Selling Rate
ทำไมอัตราแลกเปลี่ยนเปลี่ยนทุกวัน
Demand-Supply อัตราดอกเบี้ย เงินเฟ้อ ดุลการค้า นโยบายธนาคารกลาง Fed BOT เศรษฐกิจโลก น้ำมัน การเมือง สงคราม
สรุป
100 Cent = 1 Dollar ประมาณ 34-36 บาท อัตราแลกเปลี่ยนเปลี่ยนทุกวัน ดูที่ BOT Google XE SuperRich Buying Selling Rate โอนเงินใช้ Wise อัตราดีกว่าธนาคาร