2013-04-25 24 views

回答

4

像這樣:

# let v = Int64.bits_of_float 5.05 in 
    for i = 0 to 7 do 
    Printf.printf "%Lx " (Int64.logand 255L (Int64.shift_right v (i*8))) ; 
    done 
    ;; 
33 33 33 33 33 33 14 40 - : unit =() 
+2

我希望有一種有效的原始了點。 – 2013-04-25 16:57:37

+1

我怎樣才能從這個字節數組? – 2013-04-25 17:09:26

+0

另外,你能解釋更多嗎?爲什麼我們shift_right? – 2013-04-25 17:11:00

相關問題