Skip to content

Commit 7191742

Browse files
authored
Fixed float reference page.
Fixes #624.
1 parent bc8f8f4 commit 7191742

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

Language/Variables/Data Types/float.adoc

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,7 @@ x = 1;
5959
y = x / 2; // y now contains 0, ints can't hold fractions
6060
z = (float)x / 2.0; // z now contains .5 (you have to use 2.0, not 2)
6161
----
62-
63-
64-
--
65-
// HOW TO USE SECTION ENDS
66-
67-
68-
// SEE ALSO SECTION STARTS
69-
[#see_also]
70-
--
62+
[%hardbreaks]
7163

7264
[float]
7365
=== Notes and Warnings
@@ -99,6 +91,16 @@ int y = round(x); // 3
9991

10092
Floating point math is also much slower than integer math in performing calculations, so should be avoided if, for example, a loop has to run at top speed for a critical timing function. Programmers often go to some lengths to convert floating point calculations to integer math to increase speed.
10193

94+
--
95+
// HOW TO USE SECTION ENDS
96+
97+
98+
99+
100+
// SEE ALSO SECTION STARTS
101+
[#see_also]
102+
--
103+
102104
[%hardbreaks]
103105
[float]
104106
=== See also

0 commit comments

Comments
 (0)