floating-point-precision
How to use Floating Point extended precision in a MacOs or Windows system
This little piece of code is making me crazy: #include <stdio.h> int main() { double x; const double d=0.1;[详细]
2023-04-11 13:15 分类:问答Output precision is higher than double precision
I am printing some data from a C++ program to be processed/visualized by ParaView, but I am having a problem with floating point numbers. Paraview s开发者_开发知识库upports both Float32 and Float64 da[详细]
2023-04-09 08:18 分类:问答Precision, why do Matlab and Python numpy give so different outputs?
I know about basic data types and that float types (float,double) can not hold some numbers exactly. In porting some code from Matlab to Python (Numpy) I however found some significant differences in[详细]
2023-04-05 21:26 分类:问答What is the relationship between digits of significance and precision loss in floating point numbers?
So I have been trying to wrap by head around the relation between the number of significant digits in a floating point number and the relative loss of precision, but I just can\'t seem to make sense o[详细]
2023-03-27 02:53 分类:问答underlying data structure for float in python
Got a question regarding to the underlying data structure of float (and prec开发者_如何学JAVAision) in Python:[详细]
2023-03-21 09:33 分类:问答release mode uses double precision even for float variables
My algorithm is calculating the epsilon for single precision floating point arithmetic. It is supposed to be something around 1.1921e-007. Here is the code:[详细]
2023-03-11 01:07 分类:问答choosing floating point calculation model
my question is mainly for开发者_如何学Go scientific computations but I am asking in general. How do you practically choose fp model in compiler ? for example intel has precise, strict, fast, extended,[详细]
2023-03-06 19:27 分类:问答Objective-C Float / Double precision
I was messing around with storing floats and doubles using NSUserDefaults for use in an iPhone application, and I came across some inconsistencies in how the precision works with them, and how I under[详细]
2023-02-19 11:33 分类:问答What is the max. amount of decimals I should display for a float? (PHP)
I still can\'t get accurate results. What is the max. amount of decimals I should display if I want it to be as accurate as possible?[详细]
2023-01-27 18:22 分类:问答Confusion with floating point numbers
int main() { float x=3.4e2; printf(\"%f\",x); return 0; } Output: 340.000000// It\'s ok. But if write x=3.1234e2 the output is 312.339996 and if x=3.12345678e2 the output is 312.345673.[详细]
2023-01-18 14:44 分类:问答