Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

double x=0.1;

Name: Anonymous 2012-05-05 8:07

Enjoy your rounding errors, faggot.

Name: Anonymous 2012-05-05 8:15

... and washed the spider out ...

Name: Anonymous 2012-05-05 8:19

>>2
WELCOME TO THE GAME. BUGS ARE PART OF THE GAME. THEY CAN GROW AS THE GAME GROWS.

Name: Anonymous 2012-05-05 17:11

check em 4s get

Name: Anonymous 2012-05-05 17:18

double in C is defined after the IEEE standard for floating point numbers. It will be, on a machine capable of binary64 representation (read: every machine), represented as an 11-bit exponent and 52-bit integer mantissa. That means there need be no integer precision loss until you pass the 2^52-1 mark.

Name: Anonymous 2012-05-05 20:13

>>5
Standard C doesn't require IEEE floats. Floating-point numbers in C can have any representation as long as they meet or exceed the minimum value and precision limits.

Name: Anonymous 2012-05-06 6:26

>>6
As of C99, at least, the only point on which C floating point numbers are allowed to differ from IEEE 754 is when it comes to long doubles, where it says the following:

The long double type matches an IEC 60559 extended format, else a non-IEC 60559 extended format, else the IEC 60559 double format.
It later recommends that long doubles should match an IEC 60559 extended format.
double and float are guaranteed to be IEEE 754's double and single formats.

(IEC 60559 is an alias for IEEE 754.)

Name: Anonymous 2012-05-06 7:13

>>5
OP isn't talking about ints, but a number containing a point, so your point has no point.

>>1
OP, you are using floating point,  you should assume that all your numbers and calculation results are rounded. And you should avoid the = and != operator, unless you are counting on >>6 being valid for your code.

Name: bampu pantsu 2012-05-29 4:47

bampu pantsu

Don't change these.
Name: Email:
Entire Thread Thread List