-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I just read a statement about the floating point value comparison
Floating point values shall not be compared using either the == or != operators.
Most floating point values have no exact binary representation and have a
limited precision.
If so what is the best method for comparing two floating…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
There is some problem, i can't understand anyway.
look at this code please
<script type="text/javascript">
function math(x)
{
var y;
y = x*10;
alert(y);
}
</script>
<input type="button" onclick="math(0.011)">
What must be alerted after i click on button?
i think 0.11…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
I am working on a calculator that allows you to perform calculations past the decimal point in octal, hexadecimal, binary, and of course decimal. I am having trouble though finding a way to convert floating point decimal numbers to floating point hexadecimal, octal, binary and vice versa.
The…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
In learning how floating point numbers are represented in computers I have come across the term "bias value" that I do not quite understand.
The bias value in floating point numbers has to do with the negative and positiveness of the exponent part of a floating point number.
The bias value of a…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
So, title says it all. Why are floating point values so prolific in computer programming. Due to problems like rounding errors, and not being able to even accurately represent numbers such as 0.1, I really can't see how they got as far as they did.
I understand that the computation is faster…
>>> More