#import <Foundation/Foundation.h>

int main (int argc, const char * argv[]) {
  NSNumberFormatter *fmt;
  NSNumber *num;
  
  NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];

  fmt = [[NSNumberFormatter alloc] init];
  if ([fmt getObjectValue:&num forString:@"0.00" errorDescription:nil])
    NSLog(@"number: %@", num);
  else
    NSLog(@"formatting failed");
  
  if ([fmt getObjectValue:&num forString:@"-1.01" errorDescription:nil])
    NSLog(@"number: %@", num);
  else
    NSLog(@"formatting failed");
  
  [pool release];
  return 0;
}
