Commit 49d2c2bb authored by Nattapong Samanpong's avatar Nattapong Samanpong

Add new file

parent ddfb2208
def single_prec(v):
#sign = -1 if [0] == 1 else 1
return (-1)**int(v[0])* sum(int[v[i] * 2 ** (8- i) for i in range(1, 32)])
def double_prec(v):
#ang= list(map(int,v))
sign = -1 if ang[0] == 1 else 1
return sign * sum([ang[i] * 2 ** (pos - i) for i in range(1, pos + neg + 1)])
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