Code: Select all
@echo off
set hi=60
set /a hi=hi*30/2
if "%hi:~-1%"=="0" (set hi=%hi:~,-1%) else set hi=%hi:~,-1%.%hi:~-1%
set hi
pause
Returns decimal number to tenths (unless number is an integer).
Code: Select all
@echo off
set hi=60
set /a hi=hi*30/2
if "%hi:~-1%"=="0" (set hi=%hi:~,-1%) else set hi=%hi:~,-1%.%hi:~-1%
set hi
pause
Code: Select all
wscript.sleep wscript.arguments(0)*1000
Code: Select all
cscript sleep.vbs //nologo seconds