Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


#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