add missing semicolons in c.html.markdown

This commit is contained in:
Joe Savage 2015-08-29 11:44:41 +01:00
parent f4ab326784
commit 3d0687027a

View File

@ -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