floating-accuracy
Frac function losing precision
I have a TDateTime variable which is assigned a value at runtime of 40510.416667.开发者_开发百科 When I extract the time to a TTime type variable using the Frac function, it sets it to 0.41666666666.[详细]
2022-12-23 15:56 分类:问答Why does (int)(33.46639 * 1000000) return 33466389?
(int)(33.4开发者_如何转开发6639 * 1000000) returns 33466389 Why does this happen?Floating point math isn\'t perfect.What every programmer should know about it.[详细]
2022-12-22 18:55 分类:问答jQuery and long int ids
I\'ve faced with a next problem: In our database we have objects with ids, like 4040956363970588323. I\'m writing some client-wizard on jQuery for interacting with such objects. Client receives base[详细]
2022-12-21 22:09 分类:问答Can a calculation of floating point differ on different processors? (+passing doubles between C# and C)
I have an application written in C# that invokes some C code as well. The C# code gets some double as an input, performs some calculations on it, pass it to the native layer that perform its own calcu[详细]
2022-12-21 01:51 分类:问答How to Java String.format with a variable precision?
I\'d like to vary the precision of a double representation in a string I\'m formatting based on user input. Right now I\'m trying something like:[详细]
2022-12-20 14:43 分类:问答What is the difference between these two comparisons? [duplicate]
This question already has answers here: Closed 10开发者_开发知识库 years ago. Possible Duplicate:[详细]
2022-12-19 19:54 分类:问答Big float for shader-based mandelbrot explorer
I\'ve managed to create a simple mandelbrot explorer using Open Gl, and the CGFX SDK provided by NVidia. It works well, but is currently float based, and therefore doesn\'t have much \"depth\" -- As t[详细]
2022-12-18 22:07 分类:问答Counting digits in a float
I am following some开发者_JAVA百科 beginner tutorials for OpenGL in c++ but as I started off as a c# programmer it has made me take a lot of things for granted. So my problem occurred when I was debug[详细]
2022-12-18 03:19 分类:问答Are there compilers that optimise floating point operations for accuracy (as opposed to speed)?
We know that compilers are getting better and better at optimising our code and make it run faster, but my question are there compilers that can optimise floating point operations to ensure greater ac[详细]
2022-12-16 20:54 分类:问答Floating point inaccuracy examples
Locked. This question and its answers are locked because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions.[详细]
2022-12-16 19:41 分类:问答