Electric Charge Converter
在库仑、毫安时、微库仑等电荷单位之间转换。
结果
0.2777777778 mAh
所有转换
Coulomb (C)1
Millicoulomb (mC)1000
Microcoulomb (µC)1000000
Nanocoulomb (nC)1000000000
Picocoulomb (pC)1.000000e+12
Kilocoulomb (kC)0.001
Ampere-hour (Ah)0.0002777777778
Milliampere-hour (mAh)0.2777777778
Elementary Charge (e)6.241509e+18
关于此工具
电荷(electrical charge)是物质的基本性质,决定了粒子通过电磁力相互作用的方式。库仑(C)是国际单位制中的电荷标准单位,但在实际应用中—包括电池、电容器、电化学和能源存储—工程师和科学家经常使用其他单位,如安培时(Ah)、毫安培时(mAh)、微库仑(μC)和纳库仑(nC)。在这些单位之间精确转换对于电路设计、电池容量计算和设备规格理解至关重要。
这个转换器让您输入任何支持的单位中的电荷值,立即看到其他所有单位中的等效值。只需选择或输入您的起始单位和数值,工具就会自动执行转换—无需手工计算。它对于比较不同产品的电池容量、验证电气工程计算或将制造商规格从一种标注法转换为另一种标注法很有用。
该工具以完整精度处理 SI 单位和实用单位,对学术研究、专业工程工作和日常故障排除同样有价值。无论您是在设计电路、评估移动电源规格,还是检查作业,这个转换器都能消除单位转换错误的风险,这些错误可能会导致项目失败或安全问题。
常见问题
代码实现
# Electric Charge Unit Converter
# Base unit: Coulomb (C)
CHARGE_TO_COULOMB = {
"C": 1,
"mC": 1e-3,
"µC": 1e-6,
"nC": 1e-9,
"pC": 1e-12,
"kC": 1e3,
"MC": 1e6,
"Ah": 3600,
"mAh": 3.6,
"e": 1.602176634e-19, # Elementary charge
}
def convert_charge(value: float, from_unit: str, to_unit: str) -> float:
"""Convert electric charge between units."""
if from_unit not in CHARGE_TO_COULOMB:
raise ValueError(f"Unknown unit: {from_unit}")
if to_unit not in CHARGE_TO_COULOMB:
raise ValueError(f"Unknown unit: {to_unit}")
coulombs = value * CHARGE_TO_COULOMB[from_unit]
return coulombs / CHARGE_TO_COULOMB[to_unit]
# Examples
print(f"1 C = {convert_charge(1, 'C', 'µC'):.2e} µC")
print(f"1 Ah = {convert_charge(1, 'Ah', 'C'):.0f} C")
print(f"1 mAh = {convert_charge(1, 'mAh', 'C'):.1f} C")
print(f"1 µC = {convert_charge(1, 'µC', 'pC'):.0f} pC")
print(f"1 elementary charge = {1.602176634e-19:.3e} C")Comments & Feedback
Comments are powered by Giscus. Sign in with GitHub to leave a comment.