Commit f2546c06 authored by Narumon Mokpha 's avatar Narumon Mokpha

ส่งงาน week04 ค่ะ

parent dc301c6a
...@@ -3,6 +3,6 @@ def single_prec(v): ...@@ -3,6 +3,6 @@ def single_prec(v):
def double_prec(v):##การบ้าน week04 def double_prec(v):##การบ้าน week04
return (-1)**(intv[0])* sum([int(v[i]) * (2 ** (11 - i))for i in range(1,23)]) return (-1)**(int(v[0]))* sum([int(v[i]) * (2 ** (11 - i))for i in range(1,23)])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment