I don't see the point of passing through a string like this:

*julia> **hex2bytes(num2hex(1.0))*

*8-element Array{UInt8,1}:*

* 0x3f*

* 0xf0*

* 0x00*

* 0x00*

* 0x00*

* 0x00*

* 0x00*
* 0x00* 

I assume that the intermediate passage slows down the conversion.

Same question for the way back from binary to float.


Reply via email to