For challenge 30 I am writing different data types to a property list. But the corresponding float property differs from what it’s supposed to be. Can someone please explain that to me or give a better - more reliable - solution? I suppose it’s got more to do with floats than property lists per se. Thanks a lot.
NSMutableArray *someProperties = [[NSMutableArray alloc]init];
NSNumber *someFloat = [NSNumber numberWithFloat:10.37];
// …adding other types…
// writing properties to file
[someProperties writeToFile:@"/tmp/props.plist" atomically:YES];
When I checked the written XML file I encountered a funny inaccuracy: