PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Numbers in Structured Lists

Hi Kornalius,

It appears that whenever a floating point value is assigned to a variable in a "structured list" the value stored in the list element(s) is converted to an integer - that is it looses its "decimal" part.

Comments?

regards
You need to define the structure element as a TDOUBLE. The default is TINT.

Ex:

Code:
Struct(s$, "Int", "Double", TDOUBLE, "Byte", TBYTE);
s.Int$ = 1009238;
s.Double$ = 282.384;
s.Byte$ = 50;
Perfect ... many thanks
Always a pleasure!