Skip to content

Incorrect comptime_float coercion info in Language->Comptime docs #308

@steckes

Description

@steckes

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions