diff --git a/doc/langref.html.in b/doc/langref.html.in
index 814de721a..039109f93 100644
--- a/doc/langref.html.in
+++ b/doc/langref.html.in
@@ -370,17 +370,17 @@ pub fn main() void {
f32 |
float |
- 32-bit floating point (23-bit mantissa) |
+ 32-bit floating point (23-bit mantissa) IEEE-754-2008 binary32 |
f64 |
double |
- 64-bit floating point (52-bit mantissa) |
+ 64-bit floating point (52-bit mantissa) IEEE-754-2008 binary64 |
f128 |
(none) |
- 128-bit floating point (112-bit mantissa) |
+ 128-bit floating point (112-bit mantissa) IEEE-754-2008 binary128 |
bool |
@@ -407,6 +407,16 @@ pub fn main() void {
(none) |
an error code |
+
+ comptime_int |
+ (none) |
+ Only allowed for {#link|comptime#}-known values. The type of integer literals. |
+
+
+ comptime_float |
+ (none) |
+ Only allowed for {#link|comptime#}-known values. The type of float literals. |
+
{#see_also|Integers|Floats|void|Errors#}
@@ -642,7 +652,18 @@ fn divide(a: i32, b: i32) i32 {
{#header_close#}
{#header_close#}
{#header_open|Floats#}
+ Zig has the following floating point types:
+
+ f32
- IEEE-754-2008 binary32
+ f64
- IEEE-754-2008 binary64
+ f128
- IEEE-754-2008 binary128
+ c_longdouble
- matches long double
for the target C ABI
+
{#header_open|Float Literals#}
+
+ Float literals have type comptime_float
which is guaranteed to hold at least all possible values
+ that the largest other floating point type can hold. Float literals implicitly cast to any other type.
+
{#code_begin|syntax#}
const floating_point = 123.0E+77;
const another_float = 123.0;