LoginSignup
0
0

More than 5 years have passed since last update.

Pythonで小数点以下を表示

Posted at

・Pythonで小数点以下を表示する関数は多分ない。
・2系と3系で多分やり方違う
・これは2系について

Pi = 3.14

print Pi / 1
print Pi //1

print Pi - Pi//1
3.14
3.0
0.14
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0