Skip to content

Missing NaN128 constant #83

Closed
Closed

Description

@dzhang314

In the same way that Base exports the constants NaN16, NaN32, and NaN64, corresponding to the types Float16, Float32, and Float64, Quadmath.jl should export a NaN128 constant of type Float128.

To match the definitions in base/float.jl, we should define NaN128 as reinterpret(Float128, 0x7fff_8000_0000_0000_0000_0000_0000_0000), i.e., positive quiet NaN with all-zero payload. Note that we already do this for Inf128 but not NaN128 for some reason.

Activity

  1. ararslan commented on Sep 26, 2026

    @ararslan
    Member

    This was implemented in #92

  2. dzhang314 commented on Oct 7, 2026

    @dzhang314
    ContributorAuthor

    Awesome, thanks @ararslan!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions