>
If i write number 0xFFFFFFFF in C ( unsigned int ), the result is -1, if iwrite it in octave i get a very big number ( 4294967295). How would i force
octave to get -1 ?
Actually, there is a conversion from an unsigned int (0xFFFFFFFF) to a signed int (-1) taking place before the C language will display the supposedly unsigned value 0xFFFFFFFF as the signed value -1. The unsigned integer representation of that number is supposed to be 4294967295, in Octave or any other language. The question you should probably ask is "why is an unsigned integer being incorrectly displayed as a signed integer in the C code?"
- Mike