Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology
Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered
You are not logged in.
Pages: 1
#define MTOI(val) ((val)>>1)
#define MTOP(val) ((val)>>1)
#define ITOM(val) ((val)<<1)
#define PTOM(val) (((val)<<1)+1)
_inline float MTOF(int val) { return *(float*)&(val); }
_inline int FTOM(float val) { return ((*(int*)&(val)) & 0xfffffffe); }
these operation >> << &fffffffe
wouldn't it decrease the numbers's precision?
How scol deal with that.
Offline
Yep, as float uses generally IEEE_754 format:
http://en.wikipedia.org/wiki/Floating_p … _computers
Offline
Pages: 1