[QUANTITY] Review of Quantity suggestions

dbarnes at isis.ph.unimelb.edu.au dbarnes at isis.ph.unimelb.edu.au
Thu Jul 24 01:00:18 PDT 2003


Just quickly in response:

> - Question: specify a datatype? I feel we should be pretty restrictive
> here. At most, we should allow floating point (not distinguishing
> between "float" and "double"), integer, and complex. I'm not even
> positive about integer (someone have an example out there?).

I doubt you can throw away integer types. Many detectors record
counts which were integer last time I checked. Other examples
include image mosaic weights etc. which are frequently integer
values. While you can store integers in floats of course, you
run into trouble with tests for equality, which can be architecture
dependent for floats, but should be exact for integers on all
platforms.

I can give dozens of examples of quantities which really should
only ever allow integer values. Antenna number is another one.

David. 



More information about the dm mailing list