The Language->Comptime documentation for version 0.14 states:
comptime_float is also available, which internally is an f128. These cannot be coerced to integers, even if they hold an integer value.
|
`comptime_float` is also available, which internally is an `f128`. These cannot |
However, the official Zig documentation states something different:
Float literals coerce to any floating point type, and to any integer type when there is no fractional component.
https://ziglang.org/documentation/0.14.1/#Float-Literals
The Language->Comptime documentation for version 0.14 states:
zig.guide/website/versioned_docs/version-0.14/01-language-basics/24-comptime.mdx
Line 28 in 7b74c41
However, the official Zig documentation states something different:
https://ziglang.org/documentation/0.14.1/#Float-Literals