[PATCH v4 1/2] cmdline: add floating point support

Burakov, Anatoly anatoly.burakov at intel.com
Wed May 7 13:06:49 CEST 2025


On 5/7/2025 12:35 PM, Konstantin Ananyev wrote:
> 
> 
>> Add support for parsing floating point numbers in cmdline library, as well
>> as unit tests for the new functionality. The parser supports single and
>> double precision floats, and will understand decimal fractions as well as
>> scientific notation.
> 
> There are standard functions for that: strtod/strtof - can't we simply use them?

I can ask the same question of the entire existence of this part of the 
library: there are strtoull-type functions that should be available to 
all targets, so if we're going to use them for floating point parsing, 
we might as well remove the number parsing part of the library entirely. 
Either way is fine by me.

-- 
Thanks,
Anatoly


More information about the dev mailing list