How To Install fast_float-devel on CentOS 8

fast_float-devel is Fast & exact implementation of C++ from_chars for float/double

Introduction

In this tutorial we learn how to install fast_float-devel on CentOS 8.

What is fast_float-devel

The fast_float library provides fast header-only implementations for the C++ from_chars functions for float and double 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.

We can use yum or dnf to install fast_float-devel on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install fast_float-devel.

Install fast_float-devel on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install fast_float-devel using dnf by running the following command:

sudo dnf -y install fast_float-devel

Install fast_float-devel on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install fast_float-devel using yum by running the following command:

sudo yum -y install fast_float-devel

How To Uninstall fast_float-devel on CentOS 8

To uninstall only the fast_float-devel package we can use the following command:

sudo dnf remove fast_float-devel

fast_float-devel Package Contents on CentOS 8

/usr/include/fast_float
/usr/include/fast_float/ascii_number.h
/usr/include/fast_float/decimal_to_binary.h
/usr/include/fast_float/fast_float.h
/usr/include/fast_float/fast_table.h
/usr/include/fast_float/float_common.h
/usr/include/fast_float/parse_number.h
/usr/include/fast_float/simple_decimal_conversion.h
/usr/lib64/cmake/fast_float
/usr/lib64/cmake/fast_float/FastFloatConfig.cmake
/usr/lib64/cmake/fast_float/FastFloatConfigVersion.cmake
/usr/lib64/cmake/fast_float/fast_float-targets.cmake
/usr/share/FastFloat
/usr/share/FastFloat/FastFloatConfig.cmake
/usr/share/FastFloat/FastFloatConfigVersion.cmake
/usr/share/FastFloat/fast_float-targets.cmake
/usr/share/doc/fast_float-devel
/usr/share/doc/fast_float-devel/AUTHORS
/usr/share/doc/fast_float-devel/CONTRIBUTORS
/usr/share/doc/fast_float-devel/README.md
/usr/share/licenses/fast_float-devel
/usr/share/licenses/fast_float-devel/LICENSE-APACHE
/usr/share/licenses/fast_float-devel/LICENSE-MIT

References

Summary

In this tutorial we learn how to install fast_float-devel on CentOS 8 using yum and dnf.