diff options
author | Wesley Hill <hako@users.noreply.github.com> | 2013-09-09 01:30:43 +0100 |
---|---|---|
committer | Wesley Hill <hako@users.noreply.github.com> | 2013-09-09 01:30:43 +0100 |
commit | 3ea52a10845e8e6a052443c12abdc012534c6210 (patch) | |
tree | c1402604185a1121dd8363839a4f6159e005f61b | |
parent | 5a87423e209ee77b53e20f70ccc87c26511c4869 (diff) |
corrected issue on floating point literals.
-rw-r--r-- | objective-c.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/objective-c.html.markdown b/objective-c.html.markdown index 926a4a0d..1ed0ed58 100644 --- a/objective-c.html.markdown +++ b/objective-c.html.markdown @@ -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 |