echo off
cls
mode con: cols=55 lines=15
:MAIN
color 07
cls
set /p num1="Specify first number: "
cls
set /p num2="Specify second number: "
cls
set /a num3=%num1%*%num2%
echo %num3%
pause
Say num1 = 30 and num2= .10 then it would only display 0 and not .3 so how do I make it do decimals and how would you display out to 5 decimals places if needed?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…