문제

I am trying to write a batch file so it executes a program I did with different arguments. One of those arguments is often the number PI.

How can I get the number Pi?

Thanks!

도움이 되었습니까?

해결책

I assume with "batch file" you mean a Windows batch file.

There is no pre-defined constant for PI, so you need to hardcode that into the batchfile:

set PI=3.14159
yourProgram.exe %PI%
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top