How to convert a binary string to an integer or a float?

后端 未结 4 1766
梦谈多话
梦谈多话 2021-02-08 01:56

I have binary strings in the form of either:

<<"5.7778345">>

or

<<"444555">>
         


        
4条回答
  •  借酒劲吻你
    2021-02-08 02:23

    The binary_to_term function and its counterpart term_to_binary would probably serve you well.

提交回复
热议问题