I'm trying to parse a string to a float/ double within an eosio smart contract, which is basically C++ compiled to Webassembly. For some reason, the standard functions for this do not work (stof, stod, strtof, strtod), which is a known problem (https://eosio.stackexchange.com/questions/1682/convert-string-to-float-or-double)

So what I'm looking for is a single file string to float/ string to double implementation. I know of implementations like libstdc++ and libc++, but these all import various other files, and it would be very impractical for me to have to include potentially dozens of files just for a single function.

So the question is, do you know of any proper single file string to float implementations. Using other std functions is not a problem.

Browse other questions tagged or ask your own question.