floating-accuracy
Taking Logarithms of relatively small numbers in different languages/architectures/operating systems
In Java I run: System.out.println(Math.log(249.0/251.0)); Output: -0.008000042667076265 In C# I run: <- fixed[详细]
2023-01-05 17:04 分类:问答Fixing Floating Point Error
I have some code that gets the leading value (non-zero) of a Double using normal math instead of String Math...[详细]
2023-01-01 08:42 分类:问答C++ floating point precision [duplicate]
This question already has answers here: Closed 12 years ago. Possible Duplicate: Floating point inaccuracy examples[详细]
2022-12-31 20:40 分类:问答Is there a floating point value of x, for which x-x == 0 is false?
In most cases, I understand that a floating point comparison test should be implemented using over a range of values (abs(x-y) < epsilon), but does self subtraction imply that the result will be ze[详细]
2022-12-28 05:19 分类:问答Fixed Point to Floating Point and Backwards
Is converting Fixed Pt. (fixed n bit for fraction) to IEEE double safe ? ie: does IEEE double format can represent all numbers a fixed point can represent ?[详细]
2022-12-25 20:28 分类:问答Floating point precision in Visual C++
HI, I am trying to use therobust predicates for computational geometry fromJonathan Richard Shewchuk.[详细]
2022-12-25 16:57 分类:问答What Determines the Default Setting of the x87 FPU Control Word?
What determines the default setting of the x87 FPU control word -- specifically, the precision control field? Does the compiler set it based on the target processor? Is there a compiler option to chan[详细]
2022-12-25 11:05 分类:问答c++ floating point precision loss: 3015/0.00025298219406977296
The problem. Microsoft Visual C++ 2005 compiler, 32bit windows xp sp3, amd 64 x2 cpu. Code: double a = 3015.0;[详细]
2022-12-24 04:54 分类:问答Why is my number being rounded incorrectly?
This feels like the kind of code that only fails in-situ, but I will attempt to adapt it into a code snippet that represents what I\'m seeing.[详细]
2022-12-23 20:26 分类:问答Exact textual representation of an IEEE "double"
I n开发者_如何学JAVAeed to represent an IEEE 754-1985 double (64-bit) floating point number in a human-readable textual form, with the condition that the textual form can be parsed back into exactly t[详细]
2022-12-23 18:39 分类:问答