We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basic test case:
int main() { float f = 0; sscanf("0.3715", "%f", &f); printf("%f\n", f); return 0; }
Results in
$ ./hello.com.dbg 0.000000
The text was updated successfully, but these errors were encountered:
I'm working on it. So far I've managed to make it pass your test case:
$ ./o/examples/parsefloat.com 0.371500
Need to test it more and polish it up for a pull request.
Sorry, something went wrong.
examples: add a parsefloat example
758cdb7
Essentially an expanded version of the basic test case posted in GitHub issue jart#456. Also includes examples from documentation. References: jart#456 https://en.cppreference.com/w/c/string/byte/strtof
No branches or pull requests
Basic test case:
Results in
The text was updated successfully, but these errors were encountered: