argparse icon indicating copy to clipboard operation
argparse copied to clipboard

FP optional?

Open polluks opened this issue 4 years ago • 4 comments

So far argparse always requires floating point support because of strtof(). What about some kind of optional implementation?

polluks avatar Feb 23 '21 10:02 polluks

use compiler macro to make it optional?

cofyc avatar Feb 25 '21 03:02 cofyc

Yeah, so I get a non-FP version on request.

polluks avatar Feb 25 '21 07:02 polluks

Out of curiosity, in which environment there is no FP support?

cofyc avatar Feb 25 '21 08:02 cofyc

There is FP support but there's some overhead... http://aminet.net/package/dev/c/argparse You see the difference

-rwx------ 1 nobody      nogroup 25952 Feb 26 01:26 test_argparse
-rwx------ 1 nobody      nogroup 15260 Feb 26 01:24 test_argparse_nofp

polluks avatar Feb 25 '21 09:02 polluks