Chapter 14: Units
14.8. Multiple-number specifications

Natural language is full of notations for weights and measures which involve more than one number, and perhaps some punctuation. For instance, suppose we want a running time for some piece of music, in minutes and seconds: we might choose to write this in the old-fashioned way 4'33.

A running time is a kind of value. 3'59 specifies a running time.

The choice of "3" here makes no difference, much as the choice of "10" in the weight examples was arbitrary. But the "59" is significant. Numbers after the first one are expected to range from 0 up to the value we quote - so in this case, the number of seconds can be anything from 0 to 59. Or, for instance:

A height is a kind of value. 5 foot 11 specifies a height.

A specification can contain up to four numbers like this: but see the caveats on the limited total size of those numbers in the next section.

Specifications must not contain double-quotation marks because, even though people did once use these to denote minutes of arc, they would simply confuse programs like Inform's user interface which have to keep track of what is quoted text and what is not. But other punctuation marks are fine provided they occur between two digits. For instance, in

A monetary value is a kind of value. $1.99 specifies a monetary value.

the full stop between the 1 and the 99 is not interpreted as a division of two sentences; and similarly for colons in examples such as

An aspect ratio is a kind of value. 16:9 specifies an aspect ratio.


PreviousContentsNext