除IEEE754之外,是否还有其他常用的浮点格式? [英] Are there any commonly used floating point formats besides IEEE754?

查看:155
本文介绍了除IEEE754之外,是否还有其他常用的浮点格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个封送处理层,以在不同域之间自动转换值.当涉及浮点值时,这可能意味着将值从一种浮点格式转换为另一种.但是,似乎几乎每个现代系统都在使用IEEE754,所以我想知道是否值得推广其他格式,或者只是管理不同IEEE754格式之间的封送处理.

I am writing a marshaling layer to automatically convert values between different domains. When it comes to floating point values this potentially means converting values from one floating point format to another. However, it seems that almost every modern system is using IEEE754, so I'm wondering whether it's actually worth generalising to allow other formats, or just manage marshaling between different IEEE754 formats.

有人知道我应该考虑的除IEEE754之外的任何常用浮点格式(也许在ARM处理器或大型机上)吗?如果是这样,那么对格式规范的引用将非常有帮助.

Does anyone know of any commonly used floating point formats other than IEEE754 that I should consider (perhaps on ARM processors or mainframes)? If so, a reference to the format specification would be extremely helpful.

推荐答案

几乎所有相对较新的(在过去15年内)通用计算机都使用IEEE 754.使用非IEEE 754浮点格式,可能会有一个库可用于与IEEE 754相互转换.

Virtually all relatively modern (within the last 15 years) general purpose computers use IEEE 754. In the very unlikely event that you find system that you need to support which uses a non-IEEE 754 floating point format, there will probably be a library available to convert to/from IEEE 754.

一些不是本机使用IEEE 754的非古代系统是Cray SV1(1998-2003)和第5代(2002年底)之前的IBM System 360、370和390. IBM实现了 IEEE 754在早先的S/390硬件的软件版本中进行仿真.

Some non-ancient systems which did not natively use IEEE 754 were the Cray SV1 (1998-2003) and IBM System 360, 370, and 390 prior to Generation 5 (ended 2002). IBM implemented IEEE 754 emulation around 2001 in a software release for prior S/390 hardware.

这篇关于除IEEE754之外,是否还有其他常用的浮点格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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