Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand documentation for FpCategory. #88523

Merged
merged 1 commit into from
Oct 6, 2021
Merged

Commits on Aug 31, 2021

  1. Expand documentation for FpCategory.

    I intend these changes to be helpful to readers who are not yet familiar
    with the quirks of floating-point numbers. Additionally, I felt it was
    misleading to describe `Nan` as being the result of division by zero,
    since most divisions by zero (except for 0/0) produce `Infinite` floats,
    so I moved that remark to the `Infinite` variant with adjustment.
    
    The first sentence of the `Nan` documentation is copied from `f32`;
    I followed the example of the `f64` documentation by referring to `f32`
    for general concepts, rather than duplicating the text.
    kpreid committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    18df8d6 View commit details
    Browse the repository at this point in the history