LoginSignup
0
0

More than 3 years have passed since last update.

数値

Last updated at Posted at 2021-04-21
import math

print(7 // 2) #商3
print(7 % 2) #余り1

pie = 3.1415
print(round(pie,2)) #3.14

print(math.sqrt(25)) #5.0
print(math.log2(10)) #3.321928094887362

print(help(math)) #関数やライブラリのドキュメント見れます。
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