ieee-754
Convert from the IBM floating point to the IEEE floating point standard and vice versa in C#
I was looking for a way to co开发者_Go百科nvert IEEE floating point numbers to IBM floating point format for a old system we are using.[详细]
2023-02-01 06:48 分类:问答I'm in need for a floating point expert
Can anyone explain to me in detail how this log2 function works: inline float fast_log2 (float val) { int * constexp_ptr = reinterpret_cast <int *> (&a开发者_JAVA百科mp;val);[详细]
2023-01-31 10:36 分类:问答Read/Write bytes of float in JS
Is there any way I can read bytes of a float value in JS? What I need is to write a raw FLOAT or DOUBLE value into some binary format I need to make, so is there any way to get a byte-by-byte IEEE 754[详细]
2023-01-30 13:57 分类:问答What is the rationale for exponent and mantissa sizes in IEEE floating point standards?
I have a decent underst开发者_运维问答anding of how floating point works, but I want to know how the specific exponent and mantissa sizes were decided upon. Are they optimal in some way? How can optim[详细]
2023-01-29 10:04 分类:问答Unexpected results in Firebug
Unexpected results in Firebug console. Why in this operation: 1.7E16+2 the last number is 2 and in 1.7E16+3 operation the last n开发者_如何学编程umber is 4 :D This is a JavaScript Bug?[详细]
2023-01-28 11:20 分类:问答IEEE-754 double (64-bit floating point) vs. long (64-bit integer) revisited
I\'m revisiting a question (How to test if numeric conversion will change value?) that as far as I was concerned was fully solved. The problem was to detect when a particular numeric value would overf[详细]
2023-01-28 01:29 分类:问答How do I convert the bits in a ulong into a double?
I\'m looking for a C# equivalent to Java\'s Double.longBitsToDouble method. I have a double value stored in a ulong and I want those bits to be converted 开发者_开发知识库to represent a double. Is the[详细]
2023-01-27 22:44 分类:问答IEEE-754 floating-point precision: How much error is allowed?
I\'m working on porting the sqrt function (for 64-bit doubles) from fdlibm to a model-checker tool I\'m using at the moment (cbmc).[详细]
2023-01-27 21:32 分类:问答How to get the upper-/lower machine-word of a double according to IEEE 754 (ansi-c)?
i want to use the sqrt implementation of fdlibm. This implementation defines (according to the endianess) some macros for accessing the lower/upper 32-bit of a double) in the following way (here: only[详细]
2023-01-27 06:12 分类:问答How do you print out an IEEE754 number (without printf)?
For the purposes of this question, I do not have the ability to use printf facilities (I can\'t tell you why, unfortunately, but let\'s just assume for now that I know what I\'m doing).[详细]
2023-01-26 16:59 分类:问答