ieee « float « C Data Type Q&A

Home
C Data Type Q&A
1.binary
2.bit
3.byte
4.char
5.character
6.decimal
7.Development
8.float
9.hex
10.integer
11.prime
12.random
13.struct
C Data Type Q&A » float » ieee 

1. Does floor() return something that's exactly representable?    stackoverflow.com

In C89, floor() returns a double. Is the following guaranteed to work?

double d = floor(3.0 + 0.5);
int x = (int) d;
assert(x == 3);
My concern is that the result of floor ...

2. Converting double to float without relying on the FPU rounding mode    stackoverflow.com

Does anyone have handy the snippets of code to convert an IEEE 754 double to the immediately inferior (resp. superior) float, without changing or assuming anything about the FPU's current rounding ...

3. flush-to-zero behavior in floating-point arithmetic    stackoverflow.com

While, as far as I remember, IEEE 754 says nothing about a flush-to-zero mode to handle denormalized numbers faster, some architectures offer this mode (e.g. http://docs.sun.com/source/806-3568/ncg_lib.html ). In ...

4. Compilation platform taking FPU rounding mode into account in printing, conversions    stackoverflow.com

EDIT: I had made a mistake during the debugging session that lead me to ask this question. The differences I was seeing were in fact in printing a double and in ...

5. Do-s and Don't-s for floating point arithmetic?    stackoverflow.com

What are some good do-s and don't-s for floating point arithmetic (IEEE754 in case there's confusion) to ensure good numerical stability and high accuracy in your results? I know a few like ...

6. How to get the upper-/lower machine-word of a double according to IEEE 754 (ansi-c)?    stackoverflow.com

i want to use the sqrt implementation of fdlibm.
This implementation defines (according to the endianess) some macros for accessing the lower/upper 32-bit of a double) in the following way ...

7. Convert from IBM floating point to IEEE floating point standard and Vice Versa- In C#?    stackoverflow.com

Was looking for a way to IEEE floating point numbers to IBM floating point format for a old system we are using. Is there a general formula we can use in ...

8. float/ieee 745    bytes.com

9. conversion to ieee from a float    cboard.cprogramming.com

10. IEEE Floating-point fromat    daniweb.com

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.