The fast_float library provides fast header-only implementations for the C++ from_chars functions for float and double types as well as integer types. These functions convert ASCII strings representing decimal values (e.g., 1.3e10) into binary types. We provide exact rounding (including round to even). In our experience, these fast_float functions many times faster than comparable number-parsing functions from existing C++ standard libraries. It parses the character sequence [first,last) for a number. It parses floating-point numbers expecting a locale-independent format equivalent to the C++17 from_chars function. The resulting floating-point value is the closest floating-point value (using either float or double), using the "round to even" convention for values that would otherwise fall right in between two values. That is, we provide exact parsing according to the IEEE standard.

Features

  • We only support float and double types at this time
  • Documentation available
  • Integer types
  • We support Visual Studio, macOS, Linux, freeBSD
  • We support 32-bit and 64-bit systems
  • C++23: Fixed width floating-point types
  • Non-ASCII Inputs

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

Apache License V2.0

Follow fast_float

fast_float Web Site

Other Useful Business Software
Easy-to-use online form builder for every business. Icon
Easy-to-use online form builder for every business.

Create online forms and publish them. Get an email for each response. Collect data.

Easy-to-use online form builder for every business. Create online forms and publish them. Get an email for each response. Collect data. Design professional looking forms with JotForm Online Form Builder. Customize with advanced styling options to match your branding. Speed up and simplify your daily work by automating complex tasks with JotForm’s industry leading features. Securely and easily sell products. Collect subscription fees and donations. Being away from your computer shouldn’t stop you from getting the information you need. No matter where you work, JotForm Mobile Forms lets you collect data offline with powerful forms you can manage from your phone or tablet. Get the full power of JotForm at your fingertips. JotForm PDF Editor automatically turns collected form responses into professional, secure PDF documents that you can share with colleagues and customers. Easily generate custom PDF files online!
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of fast_float!

Additional Project Details

Programming Language

C++

Related Categories

C++ Libraries

Registered

2024-07-08