precision
Understanding Casting in Java
this is my first post here and i like to thank all the people that can help me with this simple question: how the casting works in java?[详细]
2023-03-16 23:15 分类:问答what exactly precision of 15 digits mean for float data type?
As per the float and real (Transact-SQL) float is an approximate data type. But also in the same article it is being mentioned that float has precision of 15 digits.[详细]
2023-03-16 00:37 分类:问答Converting 8 bytes of little-endian binary into a double precision float
I have a binary file that I read byte by byte. I come acros开发者_JAVA百科s a section that is 8 bytes long, holding a double precision float (little endian). I can\'t figure out how to read this in a[详细]
2023-03-15 11:05 分类:问答High precision arithmetic and PARI/GP
Currently I have some code in PARI/GP which implements computing values of a sequence based on a recurrence. All the numbers in this sequence are between 0 and 1 and high precision is important (at le[详细]
2023-03-15 06:59 分类:问答Run Matlab mex-Algorithm instead of Double- in Single-Precision
I have a working Matlab C code (mex files) which currently uses double precision. Thus I replaced double *datOut = mxGetPr(mxOut) by float *datOut = (float*)mxGetData(mxOut);,[详细]
2023-03-15 05:19 分类:问答How to use Gcc 4.6.0 libquadmath and __float128 on x86 and x86_64
I have medium size C99 program which uses long double type (80bit) for floating-point computation. I want to improve precision with new GCC 4.6 extension __float128. As I get, it is a software-emulate[详细]
2023-03-15 04:00 分类:问答Using ints w/decimal place tracking for handling currency in PHP
I have an issue, heh. I\'m doing some calcs with bitcoins in PHP. When I call to the API, I get back JSON with bitcoin values. They are strings with a precision of 1millionth of a decimal.[详细]
2023-03-13 19:18 分类:问答Is it possible to remove floating point errors without resorting to arbitrary-precision datatypes?
I was wondering whether, under specific conditions, it is possible to remove floating point errors without resorting to arbitrary-precision datatypes.[详细]
2023-03-13 08:35 分类:问答Half-precision floating-point in Java
Is there a Java library anywhere that can perform computations on IEEE 754 half-precision numbers or convert them to and from double-precision?[详细]
2023-03-09 10:39 分类:问答Why do I need 17 significant digits (and not 16) to represent a double?
Can someone give me an example of a floating point number (double precision), that needs more than 16 significant decimal digits to represent it?[详细]
2023-03-08 08:22 分类:问答