mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-07 07:16:42 +02:00
corrected issue on floating point literals.
This commit is contained in:
@@ -80,7 +80,7 @@ int main (int argc, const char * argv[])
|
|||||||
NSLog(@"%f", piFloat);
|
NSLog(@"%f", piFloat);
|
||||||
|
|
||||||
NSNumber *piDoubleNumber = @3.1415926535;
|
NSNumber *piDoubleNumber = @3.1415926535;
|
||||||
piDouble = [piDoubleNumber doubleValue];
|
double piDouble = [piDoubleNumber doubleValue];
|
||||||
NSLog(@"%f", piDouble);
|
NSLog(@"%f", piDouble);
|
||||||
|
|
||||||
// BOOL literals
|
// BOOL literals
|
||||||
|
Reference in New Issue
Block a user