Overview
Comment: | Use %g instead of %f in -[OFNumber description]. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
0ed2ea0df3332d6fc8403612bccd51c3 |
User & Date: | js on 2011-06-04 18:01:34 |
Other Links: | manifest | tags |
Context
2011-06-04
| ||
18:07 | Add missing include for old GNU runtime. check-in: c53d58fef3 user: js tags: trunk | |
18:01 | Use %g instead of %f in -[OFNumber description]. check-in: 0ed2ea0df3 user: js tags: trunk | |
17:50 | Add a note about fast enumeration to OFDictionary. check-in: da4d353d45 user: js tags: trunk | |
Changes
Modified src/OFNumber.m from [d234546f66] to [e2396474e9].
︙ | ︙ | |||
1138 1139 1140 1141 1142 1143 1144 | case OF_NUMBER_INT64: case OF_NUMBER_SSIZE: case OF_NUMBER_INTMAX: case OF_NUMBER_PTRDIFF: case OF_NUMBER_INTPTR: return [OFString stringWithFormat: @"%jd", [self intMaxValue]]; case OF_NUMBER_FLOAT: | | | | 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 | case OF_NUMBER_INT64: case OF_NUMBER_SSIZE: case OF_NUMBER_INTMAX: case OF_NUMBER_PTRDIFF: case OF_NUMBER_INTPTR: return [OFString stringWithFormat: @"%jd", [self intMaxValue]]; case OF_NUMBER_FLOAT: return [OFString stringWithFormat: @"%g", value.float_]; case OF_NUMBER_DOUBLE: return [OFString stringWithFormat: @"%lg", value.double_]; default: @throw [OFInvalidFormatException newWithClass: isa]; } } - (OFXMLElement*)XMLElementBySerializing { |
︙ | ︙ |