diff --git a/doc/langref.html.in b/doc/langref.html.in
index 8e24a4be2..dbb4ea980 100644
--- a/doc/langref.html.in
+++ b/doc/langref.html.in
@@ -367,6 +367,11 @@ pub fn main() void {
for ABI compatibility with C |
+
+ f16 |
+ float |
+ 16-bit floating point (10-bit mantissa) IEEE-754-2008 binary16 |
+
f32 |
float |
@@ -654,6 +659,7 @@ fn divide(a: i32, b: i32) i32 {
{#header_open|Floats#}
Zig has the following floating point types:
+ f16
- IEEE-754-2008 binary16
f32
- IEEE-754-2008 binary32
f64
- IEEE-754-2008 binary64
f128
- IEEE-754-2008 binary128
@@ -3671,10 +3677,11 @@ test "implicit unsigned integer to signed integer" {
}
test "float widening" {
- var a: f32 = 12.34;
- var b: f64 = a;
- var c: f128 = b;
- assert(c == a);
+ var a: f16 = 12.34;
+ var b: f32 = a;
+ var c: f64 = b;
+ var d: f128 = c;
+ assert(d == a);
}
{#code_end#}
{#header_close#}