Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
バッチ ファイルを作成しようとしているので、さまざまな引数で実行したプログラムを実行します。これらの引数の 1 つは、多くの場合、数値 PI です。
数 Pi を取得するにはどうすればよいですか?
ありがとう!
「バッチ ファイル」とは、Windows バッチ ファイルを意味すると思います。
PI には定義済みの定数がないため、それをバッチファイルにハードコードする必要があります。
set PI=3.14159 yourProgram.exe %PI%