title: How can I manually set the bit value of a float that equates to NaN?
body: <p>I'm trying to run some tests with conversions and castings of floats to other types and I want to set my float variable to different values of nan.</p>
  
  <p>"a bit-wise example of a IEEE floating-point standard single precision (32-bit) NaN would be: s111 1111 1axx xxxx xxxx xxxx xxxx xxxx where s is the sign (most often ignored in applications), a determines the type of NaN, and x is an extra payload (most often ignored in applications). If a = 1, it is a quiet NaN; if a is zero and the payload is nonzero, then it is a signaling NaN"</p>
  
  <p>Basically I want to find a way to set the payload or xxxx's of the representation. Is there any way to do this in c?</p>