Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re^2: Exploring IEEE754 floating point bit patterns.

by BrowserUk (Pope)
on Jul 29, 2012 at 06:46 UTC ( #984270=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
        printf("%f %f\n",       inf / inf, -(inf / inf)); // -1.#IND00 -1.
        printf("%.4f %.4f\n",   inf / inf, -(inf / inf)); // -1.#IND -1.#I
        printf("%.10f %.10f\n", inf / inf, -(inf / inf)); // -1.#IND000000
    + -1.#IND000000
  2. or download this
        printf("%g %g\n", inf / inf, -(inf / inf));      // -1.#IND -1.#IN
  3. or download this
    print +( 10.0**20 + 1 ) - 10.0**20;;
    print +( 10.0**20 - 10.0**20 ) + 1;;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://984270]
[stevieb]: can anyone recommend a good IDE for C programming that has *proper* vim plugin support? I've tried Eclipse, Netbeans etc and just can't get anything to work properly on Linux. I'm open to paying, but not on some monthly/yearly plan (just a one-off cost)
[stevieb]: I'd go with CLion as it's very similar to what I use already (intelliJ for Perl, Pycharm for Python), but it's a recurring fee every year

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2017-01-18 19:07 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (163 votes). Check out past polls.