JuliaMath / JuliaMath/Quadmath.jl

Missing `NaN128` constant

Open
#83 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
44
Forks
13
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/JuliaLang/julia/blob/master/base/float.jl#L8), 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`](https://github.com/JuliaMath/Quadmath.jl/blob/master/src/Quadmath.jl#L403) but not `NaN128` for some reason.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.