A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2321.htm below:

N2321: nextafterl(1.L,2.L)


Submitter:Fred Tydeman
Submission Date: 2018-12-12
Document: WG14 N2321
Reference Documents: N2302

Summary

For most floating-point formats, nextafterl(1.L,2.L) is the normalized number whose value is 1.L+LDBL_EPSION. However, when long double is a pair of doubles, it is not clear what the standard requires (could be 1.L+LDBL_TRUE_MIN), what implementations do, and what users want. At least one implementation punted on this by not providing nextafterl; while they do provide nextafter and nextafterf

It seems that making nextafterl(1.L,2.L) be 1.L+LDBL_EPSION for all implementations would help with portability.

Technical Corrigendum:

Add this paragraph:

A finite result shall be either a zero, a subnormal floating-point number, or a normalized floating-point number.

to:

§7.12.11.3 The nextafter functions, §7.12.11.4 The nexttoward functions, §7.12.? The nextup functions, and §7.12.? The nextdown functions in the Description section.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4