How to use PI in a batch file

I am trying to write a batch file, so it executes a program that I made with different arguments. One such argument is often the PI number.

How can i get the pi number?

Thank!

+3
source share
1 answer

I assume that with a “batch file” you mean a Windows batch file.

There is no predefined constant for PI, so you need to write it hard to the batch file:

set PI=3.14159
yourProgram.exe %PI%
+7
source

All Articles