json-tutorial icon indicating copy to clipboard operation
json-tutorial copied to clipboard

tutorial02 为什么需要将十进制的数转化为二进制

Open xxx50236 opened this issue 6 years ago • 1 comments

xxx50236 avatar Jul 20 '18 07:07 xxx50236

所有的东西落实到最后总是要以二进制的形式存储的,原文的重点是将Cstring 转换成标准的double浮点型不是一件容易的事,将其转化成内存中二进制的表示涉及到sign,Exponent和Mantissa,相比之下下整型只需要将每个数字转成相应的二进制,然后根据大小端顺序不一样。

kingFighter avatar Jul 23 '18 16:07 kingFighter