C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Low-level float parsing functions

From: Jason McKesson <jmckesson_at_[hidden]>
Date: Tue, 29 Apr 2025 10:45:45 -0400
On Tue, Apr 29, 2025 at 4:14 AM Jan Schultke via Std-Proposals
<std-proposals_at_[hidden]> wrote:
>
> I think the best approach would be to propose the minimal interface, and then multiple levels of convenience on top of that, and see what LEWG is comfortable with.
>
> Level 0 would be the function I've shown, just taking the integer and fraction digits, and the pre-parsed exponent.
> Level 1 would additionally take the exponent digits and sign, in case the user doesn't want to preparse the exponent.
> Level 2 would additionally take a character which is ignored anywhere, to enable digit separators

Wouldn't "Level 1" just be a second call into "level 0" to produce the
exponent from its integer and fraction digits?

Received on 2025-04-29 14:45:58