我正在尝试制作一个Dogecoin转换为比特币转换器,以确定您是否在CMD中使用Litecoin或Dogecoin获得更多比特币,但它不会将数字与小数相乘!
@echo off
title Dogecoin to Bitcoin
goto start
:math
set/a BTC=DOGE*DtB
set/a LTC=DOGE*DtL*LtB
goto end
:start
set/p DtB="Dogecoin to Bitcoin? :"
set/p DtL="Dogecoin to Litecoin? :"
set/p LtB="Litecoin to Bitcoin? :"
set/p DOGE="How many Dogecoin? :"
goto math
:end
echo Doge: %DOGE%
echo Bitcoin with Dogecoin: %BTC%
echo Bitcoin with Litecoin: %LTC%
pause
我做错了什么或只是CMD?