Skip to content

Commit 8212d4e

Browse files
committed
좀 더 복잡한 계산
1 parent e4b15f3 commit 8212d4e

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎Number/2.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import math
2+
print(math.ceil(2.2))
3+
print(math.floor(2.7))
4+
print(math.pow(2,10))
5+
print(math.pi)

‎Number/2.rb‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
puts( 2.2.ceil() )
3+
puts( 2.7.floor() )
4+
puts( 2**10 )
5+
puts( Math::PI )

0 commit comments

Comments
 (0)