Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


#ActualParadigm Shifter

Posted 01 May 2013 - 12:29 PM

Well, a C-style cast trumps everything (can do all types of casts).

 

One use is to get the binary representation of a float, reinterpret_cast the address to an int*, so you can do bit-twiddling operations on it (like clearing or setting the sign bit, stuff like that).


#1Paradigm Shifter

Posted 01 May 2013 - 12:29 PM

Well, a C-style cast trumps everything (can do all types of casts).

 

One use is to get the binary representation of a float, reinterpret_cast the adress to an int*, so you can do bit-twiddling operations on it (like clearing or setting the sign bit, stuff like that).


PARTNERS