流浪停吗
英英字典里的解释如果只辨析漂流的意思:float:stay on top of a liquid:[the boat floated down the river]船顺流漂行. drift:vi. be carried along by a current of air or water,move slowly without aim . [The boat drifted ashore on an island ]小船漂浮到一个海岛上
让我爱你
double与float的区别在于在内存中存放数据时占用的内存不一样,前者8字节,后者4字节,也就是前者保存的小数位数比后者多一倍。举例说明对于1.9999996666,按照float输出,结果可能为1.999999,如果按照double可能为1.999999,这是为什么,因为c语言默认输出小数位数都取6位,这时候看起来没有区别,但是如果你进行格式控制,比如使用%.10,即小数保留10位,float输出结果为1.9999990000,而double输出结果则为1.9999996666。
优质英语培训问答知识库