Original Post
i pack 3 floats to an int:
int result =( int( f1 * 8.0f ) & 0x7ff ) |
( ( int( f2 * 8.0f ) & 0x7ff ) << 11 ) |
( ( int( f3 * 4.0f ) & 0x3ff ) << 22 ) ;
...later, i want to get my floats back from the int var.
it works, but only if each of all 3 floats are >= 0.
if they are e.g. -23.34,-45,-345 - or 23,-45,11 ...
it won`t work.
the packing method is not mine, so i really need help here.
thanks