Commit 67fc4d10 authored by narakorn vichianchai's avatar narakorn vichianchai

finish

parent 8fd4b799
def single_prec(V):
v = list(map(int,V))
return (-1)**v[0] * sum([v[i] * 2 ** (8 - i) for i in range(1, 32)])
def double_prec(V):
v = list(map(int,V))
return (-1)**v[0] * sum([v[i] * 2 ** (8 - i) for i in range(1, 64)])
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