Question Set Bits of a single

scholsey18

New member
Joined
Mar 27, 2010
Messages
1
Programming Experience
Beginner
Hi I'm a newbie in VB.NET,

I am trying to directly set the bits of a single variable.

For example -

dim afloat as single
afloat = &h0000000c

afloat will then be set to to '12'. However, I wish to actually set the bits of afloat to &h0000000c, which will give a different value.

Does anyone know how this can be done?

I hope I made myself clear!

Thanks
 
Back
Top