1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
|
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: @"%f", value.float_];
return [OFString stringWithFormat: @"%g", value.float_];
case OF_NUMBER_DOUBLE:
return [OFString stringWithFormat: @"%lf", value.double_];
return [OFString stringWithFormat: @"%lg", value.double_];
default:
@throw [OFInvalidFormatException newWithClass: isa];
}
}
- (OFXMLElement*)XMLElementBySerializing
{
|