简体   繁体   English

Nixdorf 8812浮点数

[英]Nixdorf 8812 Floating Point Numbers

I'm currenty working on a cashier system software and stumbled over 32 and 48bit Nixdorf 8812 floating point numbers. 我目前正在使用收银机系统软件,偶然发现32和48位Nixdorf 8812浮点数。 For example: 例如:

A4 38 76 00 00 00 or A4 35 97 00 A4 38 76 00 00 00或A4 35 97 00

I suppose the first bit is for signed numbers, but what is the exponent? 我想第一位是带符号的数字,但是指数是多少?

Edit: Found out that the first "4" means the position of the decimal separator. 编辑:发现第一个“ 4”表示小数点分隔符的位置。 All numbers after that are packed decimals. 之后的所有数字均以小数点后缀表示。 The "A" seems to be the sign. “ A”似乎是标志。 But this is just a guess. 但这只是一个猜测。 The total amount matches btw! 总计符合btw!

Maybe it's a variant of IEEE 754? 也许是IEEE 754的变体? :) :)

https://en.wikipedia.org/wiki/IEEE_floating_point https://en.wikipedia.org/wiki/IEEE_floating_point

Can you create arbitrary floating point numbers at look at their binary representation? 看看它们的二进制表示形式,您可以创建任意浮点数吗?

Like 0.0, +0.0, -0.0, +1.0, -1.0 像0.0,+ 0.0,-0.0,+ 1.0,-1.0

And if you can, could you post them here? 如果可以的话,可以在这里发布吗? 😁 😁

Example: A4 35 97 00 -> 35,97 例如:A4 35 97 00-> 35,97

The "4" was the decimal separator. “ 4”是小数点分隔符。 I didnt find out what the "A" means. 我没有弄清楚“ A”是什么意思。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM