dMv (daemonv) wrote,
dMv
daemonv

Wizard question

In C++

Our floating point library needs a value for inf and -inf. Presently, this was done by

min_real_val = -1.0 / 0.0;

and the obvious counter to that. This causes the compiler (our compiler, even) to complain... but it works (I believe). Is there a better way to get these values?
Subscribe

  • I don't update frequently because I respect you.

    Housing: We've got two contenders and some really fun stories about trying to buy a house in the begining of a buyer's market. Our poor young…

  • (no subject)

    Vanya finished. Rus. Ukr. Mold. Amer. CH. Vlastelin Udachi Iz Podnebesija. I moved all of the big items from my apartment into storage this…

  • Disperse the Stuff

    If you have an interest in stuff, or free beer, or feel like hanging out, I will be at my place most of Sunday (24th of July). Stop by late afternoon…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your IP address will be recorded 

  • 12 comments

  • I don't update frequently because I respect you.

    Housing: We've got two contenders and some really fun stories about trying to buy a house in the begining of a buyer's market. Our poor young…

  • (no subject)

    Vanya finished. Rus. Ukr. Mold. Amer. CH. Vlastelin Udachi Iz Podnebesija. I moved all of the big items from my apartment into storage this…

  • Disperse the Stuff

    If you have an interest in stuff, or free beer, or feel like hanging out, I will be at my place most of Sunday (24th of July). Stop by late afternoon…