Top "Floating-point" questions

Floating point numbers are approximations of real numbers that can represent larger ranges than integers but use the same amount of memory, at the cost of lower precision.

Float sum with javascript

Possible Duplicate: Is JavaScript's Math broken? I'm calculating the sum of several float values using javascript and... I've noticed a …

javascript math floating-point
Function for 'does matrix contain value X?'

Is there a built in MATLAB function to find out if a matrix contains a certain value? (ala PHP's in_…

matlab function matrix floating-point
Ranges of floating point datatype in C?

I am reading a C book, talking about ranges of floating point, the author gave the table: Type Smallest Positive …

c floating-point ieee-754
Floating point comparison functions for C#

Can someone point towards (or show) some good general floating point comparison functions in C# for comparing floating point values? …

c# .net floating-point
Checking if float is an integer

How can I check if a float variable contains an integer value? So far, I've been using: float f = 4.5886; if (…

c floating-point int
How to get the sign, mantissa and exponent of a floating point number

I have a program, which is running on two processors, one of which does not have floating point support. So, …

c floating-point emulation
Comparing floating point number to zero

The C++ FAQ lite "[29.17] Why doesn't my floating-point comparison work?" recommends this equality test: #include <cmath> /* for std::…

c++ floating-point
Why can't decimal numbers be represented exactly in binary?

There have been several questions posted to SO about floating-point representation. For example, the decimal number 0.1 doesn't have an exact …

math floating-point
Truncate Decimal number not Round Off

Possible Duplicate: c# - How do I round a decimal value to 2 decimal places (for output on a page) I …

.net floating-point truncate
Java double comparison epsilon

I wrote a class that tests for equality, less than, and greater than with two doubles in Java. My general …

java floating-point currency