I need help with getting the "time to target" to show as minutes and seconds but i have no idea how.
@echo off
title torpedo calculator
:main
echo Menu:
echo 1.Torpedo Solution
echo 2.Exit
set /p ch=Enter your choice
if %ch%==1 goto torp
if %ch%==2 goto exit
:torp
cls
set /p a=Range to target:
set /p e=Bearing to target:
set modify=700
set /a "c=%a%-%modify%""
set /a "d=%c%/43"
set /a "f=%a%/43"
cls
echo FIRING SOLUTION
echo Fire from the side the target is on
echo Activation = %d%
echo Bearing = %e%
echo Time to target = %f%
pause
goto main
:exit
timeout /t2
exit
in the code i have posted /a "f=%a%/43" calculates the time to target in seconds. so for example Range to target is 6700, the time to target would be 155. I have tried to divede that number by 60 but only get 2 as an answer, no decimal point. I hope i have explained that so it makes sense as i'm new to coding :D really appreciate any help.