Opened 5 years ago

Closed 5 years ago

#13355 closed Bugs (fixed)

Documentation bug on 'Floating-point Comparison' page

Reported by: Nathan Widmyer <lighthousej@…> Owned by: John Maddock
Milestone: To Be Determined Component: math
Version: Boost 1.66.0 Severity: Problem
Keywords: Cc:

Description

Found in: http://www.boost.org/doc/libs/1_66_0/libs/math/doc/html/math_toolkit/float_comparison.html

Newer compilers should provide std::numeric_limitsFPT>::max_digits10 for this purpose

Part in bold is suspicious.

Immediately following that, there's a Note callout box with the more likely variable name:

int max_digits10 = 2 + std::numeric_limits<FPT>::digits10 * 3010/10000;

Change History (2)

comment:1 by Daniel James, 5 years ago

Component: Documentationmath
Owner: changed from Matias Capeletto to John Maddock

comment:2 by John Maddock, 5 years ago

Resolution: fixed
Status: newclosed

Fixed in develop - thanks for spotting that!

Note: See TracTickets for help on using tickets.