[fpc-pascal] Adding a array of float in ressource and use it ?
fiens at hotmail.com
Mon Mar 6 13:41:56 CET 2017
> I don't know. By all logic, it should not work either.
Yes, it is I think too.
Some more explanation:
I use a "global" buffer of float to store data.
Those data can be int16, int32 or float32.
If data are integer (16 or 32 bit), I do:
bufferfloat[x] := 127.0 ; (for int16)
bufferfloat[x] := 2147483646.0; (for int32)
If data are float 32 bit, I do:
bufferfloat[x] := 0.2147483646 ; (for float32)
So it seems to me Sizeof(bufferfloat[x]) is the same in the 3 cases (alway
Aaargh, sorry, I always come with extreme programming (or extreme dummy)
Many thanks ;-)
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Adding-a-array-of-float-in-ressource-and-use-it-tp5727765p5727782.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
More information about the fpc-pascal