shootman2 当前离线
五级士官
评分人数
TOP
pcl_test 当前离线
荣誉版主
@echo off & setlocal enabledelayedexpansion for /f "delims=" %%a in ('echo 40*^(1-99*0.01^)^|bc') do set "n=%%a" &if "!n:~,1!" == "." (echo,0%%a) else (echo,%%a) pause复制代码
CrLf 当前离线
论坛巡查
awk "BEGIN{printf \"%%.2f\",40*(1-99*0.01)}"复制代码
for /f %%x in ('awk "BEGIN{printf \"%%.2f\",40*(1-99*0.01)}"') do echo %%x复制代码
DAIC 当前离线
中将
@echo off for /f %%i in ('echo 40*^(1-80*0.01^) ^| bc ^| gawk "{printf \"%%.2f\",$0}"') do ( echo,%%i ) pause复制代码
@echo off for /f "delims=" %%a in ('echo 40*^(1-80*0.01^)^|bc') do echo %%a pause复制代码