Hi GNU,
NSNumber* num = [NSNumber numberWithDouble: 2.0 / 3.0];
...
NSNumberFormatter* form = [[NSNumberFormatter alloc] init];
...
[form setPositiveFormat: @#.000(15-zeros)000];
...
NSString* s = [form stringFromNumber: num];
...
printf (s (%s)\n, [s cString]);
GIVES:
s (00.67E1400)
One problem here could be that you use an NSNumber. This should worl but
currently we are using a horrible conversion here. We convert the
NSNumber into an NSDecimalNumber via an NSString and then use
NSDecimalNumber for the formating. I wouldn't be too surprised to learn
that this conversion is