I'm very new to batch script.
I'm getting this error and clueless how to solve. im supposed to get amount (ml) =9.375, but instead getting 5.
Im trying to come up with dose calculator
The whole idea is getting for right amount, weight is 15kg, dose is 15mg/kg. strenght of solution is 120mg/5ml.
So the amount is ((15*15)/120)*5=9.375ml
Where I might go wrong here?
@echo off
Title Syrup dose calculator
color 5a
set /p weight= Enter child's weight:
set /p dose= Enter required dose in mg/kg:
set /a totaldose= %weight%*%dose%
set /a amountml = ((%weight%*%dose%)/120)*5)
echo.
echo Total(mg) :%totaldose%
echo Amount(ml) : %amountml%
echo.
pause
goto loop