What would be the smallest positive float (epsilon) such that 1.0 + epsilon != 1.0f?

What is the condition that I have to use to attain this?

Printable View

- 09-23-2008, 06:59 PMrosh72851machine epsilon
What would be the smallest positive float (epsilon) such that 1.0 + epsilon != 1.0f?

What is the condition that I have to use to attain this? - 09-23-2008, 10:29 PMrosh72851
Ok I figured how to do that.

Next question, how do I convert float and double data types to binary. For float, ive used the function

Code:`Integer.toBinaryString(Float.floatToRawIntBits(value));`

Please suggest. - 09-23-2008, 11:21 PMNorm
why duplicate threads?