将浮点格式由big-endian和little endian的影响? [英] Would float point format be affected by big-endian and little endian?

查看:336
本文介绍了将浮点格式由big-endian和little endian的影响?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道整数格式是大端机和little-endian机之间的不同,是它浮点格式相同(IEEE 754)?

I know the integer format would be different between big-endian machine and little-endian machine, is it the same for float point format (IEEE 754)?

推荐答案

在IEEE754规范浮点数​​根本不包括字节顺序问题。浮点数因此可以在不同的机器上使用不同的重新presentations和,在理论上,它对于两个处理器整数字节顺序是相同的,浮点不同,或者反之亦然甚至可能

The IEEE754 specification for floating point numbers simply doesn't cover the endianness problem. Floating point numbers therefore may use different representations on different machines and, in theory, it's even possible that for two processors integer endianness is the same and floating point is different or vice-versa.

请参阅这个维基百科文章更多信息。

这篇关于将浮点格式由big-endian和little endian的影响?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆