option{title:”质量(重量)单位换算计算器”;comment:”可进行各种质量(重量)单位制的换算。\n支持以下单位制:\n吨(t)、公斤(kg)、克(g)、毫克(mg)、市斤、担、两、钱、金衡磅(lb t)、金衡盎司(oz t)、英钱(dwt)、金衡格令、(英制)长吨、(美制)短吨、英担(cwt)、美担(cwt)、英石、磅(lb)、盎司(oz)、打兰(dr)、格令、克拉(carat)、分(point)”;}
input{iv:”换算前数值”;iu:”换算前单位制”;ou:”换算后单位制”;}
output{ri:hide;ro:hide;ov:”换算后数值”;}
view{
iu:””,”吨(t)”,”公斤(kg)”,”克(g)”,”毫克(mg)”,”市斤”,”担”,”两”,”钱”,”金衡磅(lb t)”,”金衡盎司(oz t)”,”英钱(dwt)”,”金衡格令”,”(英制)长吨”,”(美制)短吨”,”英担(cwt)”,”美担(cwt)”,”英石”,”磅(lb)”,”盎司(oz)”,”打兰(dr)”,”格令”,”克拉(carat)”,”分(point)”;
ou:””,”吨(t)”,”公斤(kg)”,”克(g)”,”毫克(mg)”,”市斤”,”担”,”两”,”钱”,”金衡磅(lb t)”,”金衡盎司(oz t)”,”英钱(dwt)”,”金衡格令”,”(英制)长吨”,”(美制)短吨”,”英担(cwt)”,”美担(cwt)”,”英石”,”磅(lb)”,”盎司(oz)”,”打兰(dr)”,”格令”,”克拉(carat)”,”分(point)”;}
validate{alert:[iu==0,”请选择换算前单位制”][ou==0,”请选择换算后单位制”];}
ri=when(iu-1,0,0.001)
+when(iu-2,0,1)
+when(iu-3,0,1000)
+when(iu-4,0,1000000)
+when(iu-5,0,2)
+when(iu-6,0,0.02)
+when(iu-7,0,20)
+when(iu-8,0,200)
+when(iu-9,0,2.6792288807189983)
+when(iu-10,0,32.15074656862797)
+when(iu-11,0,643.0149313725595)
+when(iu-12,0,15432.358352941428)
+when(iu-13,0,0.0009842065276110606)
+when(iu-14,0,0.001102311310924388)
+when(iu-15,0,0.01968413055222121)
+when(iu-16,0,0.022046226218487758)
+when(iu-17,0,0.1574730444177697)
+when(iu-18,0,2.2046226218487757)
+when(iu-19,0,35.27396194958041)
+when(iu-20,0,564.3833911932866)
+when(iu-21,0,15432.358352941428)
+when(iu-22,0,5000)
+when(iu-23,0,500000);
ro=when(ou-1,0,0.001)
+when(ou-2,0,1)
+when(ou-3,0,1000)
+when(ou-4,0,1000000)
+when(ou-5,0,2)
+when(ou-6,0,0.02)
+when(ou-7,0,20)
+when(ou-8,0,200)
+when(ou-9,0,2.6792288807189983)
+when(ou-10,0,32.15074656862797)
+when(ou-11,0,643.0149313725595)
+when(ou-12,0,15432.358352941428)
+when(ou-13,0,0.0009842065276110606)
+when(ou-14,0,0.001102311310924388)
+when(ou-15,0,0.01968413055222121)
+when(ou-16,0,0.022046226218487758)
+when(ou-17,0,0.1574730444177697)
+when(ou-18,0,2.2046226218487757)
+when(ou-19,0,35.27396194958041)
+when(ou-20,0,564.3833911932866)
+when(ou-21,0,15432.358352941428)
+when(ou-22,0,5000)
+when(ou-23,0,500000);
ov=iv*ro/ri;
今天的文章如何用计算机克数和斤换算,质量(重量)单位换算计算器分享到此就结束了,感谢您的阅读。
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/67736.html