Skip to content

Commit

Permalink
change number format style
Browse files Browse the repository at this point in the history
  • Loading branch information
Blankwonder committed Apr 18, 2018
1 parent e965ad0 commit 8bab5c4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions BCurrency/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,12 @@ int main(int argc, const char * argv[]) {
// }
// }
// ]}

NSString *result = [@(value * source) stringValue];

NSDictionary *output = @{@"items": @[@{@"subtitle": [NSString stringWithFormat:@"%@/%@ %g", from, to, value],
@"title": [NSString stringWithFormat:@"%g", value * source],
@"arg": [NSString stringWithFormat:@"%g", value * source]
@"title": result,
@"arg": result
}]};

NSData *outputData = [NSJSONSerialization dataWithJSONObject:output options:0 error:nil];
Expand Down

0 comments on commit 8bab5c4

Please sign in to comment.