1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-12 01:34:19 +02:00

Merge pull request #333 from hako/master

Fixed floating point issue in objective-c.html.markdown
This commit is contained in:
Adam Bard
2013-09-08 21:40:21 -07:00

View File

@@ -80,7 +80,7 @@ int main (int argc, const char * argv[])
NSLog(@"%f", piFloat);
NSNumber *piDoubleNumber = @3.1415926535;
piDouble = [piDoubleNumber doubleValue];
double piDouble = [piDoubleNumber doubleValue];
NSLog(@"%f", piDouble);
// BOOL literals