summaryrefslogtreecommitdiffhomepage
path: root/c.html.markdown
diff options
context:
space:
mode:
authorJoe Savage <joe@reinterpretcast.com>2015-08-29 11:44:41 +0100
committerJoe Savage <joe@reinterpretcast.com>2015-08-29 11:44:41 +0100
commit3d0687027a450d1778e6f7336f96962fa385ec53 (patch)
tree220865d34b632e7a3f635703ef4448d7d135cb84 /c.html.markdown
parentf4ab326784f571e3bb532f5f60a87fc1aea47552 (diff)
add missing semicolons in c.html.markdown
Diffstat (limited to 'c.html.markdown')
-rw-r--r--c.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/c.html.markdown b/c.html.markdown
index d3f20eda..e2e15620 100644
--- a/c.html.markdown
+++ b/c.html.markdown
@@ -183,8 +183,8 @@ int main() {
i1 / i2; // => 0 (0.5, but truncated towards 0)
// You need to cast at least one integer to float to get a floating-point result
- (float)i1 / i2 // => 0.5f
- i1 / (double)i2 // => 0.5 // Same with double
+ (float)i1 / i2; // => 0.5f
+ i1 / (double)i2; // => 0.5 // Same with double
f1 / f2; // => 0.5, plus or minus epsilon
// Floating-point numbers and calculations are not exact