[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
--
Reply to: [list | sender only]
[ddlm-group] Is the string '2.0' an Integer?
- To: ddlm-group <ddlm-group@iucr.org>
- Subject: [ddlm-group] Is the string '2.0' an Integer?
- From: James H <jamesrhester@gmail.com>
- Date: Wed, 10 Nov 2021 12:42:20 +1100
Antanas has asked an interesting question [1]. In essence, if data name _xyz has DDLm type 'Integer', would '2.0' conform to this specification?
I think yes, for the same reasons that both delimited and undelimited strings can be interpreted as numbers. There is a single unambiguous interpretation as an integer.
The reason this has come up is that e.g. total counts might be restricted to an integral value, but the SU will most often be non-integer, and using the form '2' would not allow appending the SU, whereas 2.0(14) allows this.
Any comments?
--
T +61 (02) 9717 9907
F +61 (02) 9717 3145
M +61 (04) 0249 4148
F +61 (02) 9717 3145
M +61 (04) 0249 4148
_______________________________________________ ddlm-group mailing list ddlm-group@iucr.org http://mailman.iucr.org/cgi-bin/mailman/listinfo/ddlm-group
Reply to: [list | sender only]
- Follow-Ups:
- Re: [ddlm-group] Is the string '2.0' an Integer? (Bollinger, John C)
- Prev by Date: Re: [ddlm-group] Restricting identifiers to integers: a good idea?
- Next by Date: Re: [ddlm-group] Is the string '2.0' an Integer?
- Prev by thread: Re: [ddlm-group] Multi block principles
- Next by thread: Re: [ddlm-group] Is the string '2.0' an Integer?
- Index(es):