[CCC DEV] UDP interaction question

Carl Ritson C.G.Ritson at kent.ac.uk
Thu Dec 29 20:20:13 GMT 2011


> If I read in a floating point number that is communicated in two
> words, can I drop those two words into an array and RETYPE that array
> to a REAL32?

Yes, assuming you mean 16-bit words.  Alternatively just retype the
REAL32 to bytes first.

  REAL32 x:
  []BYTE x RETYPES x:
  SEQ i = 0 FOR SIZE x
    read.byte(x[i])



More information about the developers mailing list