Quantity fields behave identically to float fields, but with the additional semantics that the value represents a quantity. A quantity is a value which is either an integer number of “shares” (securities denominated in whole units), or a decimal value for non-share quantity asset classes (securities denominated in fractional units).
| Example | Valid | Notes |
|---|---|---|
| 23.23 | ||
| 0023.2300 | Leading and trailing zeroes are permitted | |
| -23.23 | Negative values are proceeded by a minus sign | |
| 25 | The fractional part is optional | |
| +23 | Positive values are represented without a sign character | |
| 10.0a | 'a' is not a valid digit |