Skip to content

Commit 8514abe

Browse files
authored
Update README with note for C users
Added a note for C users to consider ffc.h for high-performance parsing.
1 parent 9f30728 commit 8514abe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,17 @@
33

44
[![Ubuntu 22.04 CI (GCC 11)](https://github.com/fastfloat/fast_float/actions/workflows/ubuntu22.yml/badge.svg)](https://github.com/fastfloat/fast_float/actions/workflows/ubuntu22.yml)
55

6+
*Note: This library is for C++ users. C programmers should consider [ffc.h](https://github.com/kolemannix/ffc.h). It is a high-performance port of fast_float to C.*
7+
8+
69
The fast_float library provides fast header-only implementations for the C++
710
from_chars functions for `float` and `double` types as well as integer types.
811
These functions convert ASCII strings representing decimal values (e.g.,
912
`1.3e10`) into binary types. We provide exact rounding (including round to
1013
even). In our experience, these `fast_float` functions many times faster than
1114
comparable number-parsing functions from existing C++ standard libraries.
1215

16+
1317
Specifically, `fast_float` provides the following two functions to parse
1418
floating-point numbers with a C++17-like syntax (the library itself only
1519
requires C++11):

0 commit comments

Comments
 (0)