LibBF Library

News

Introduction

LibBF is a small library to handle arbitrary precision floating point numbers. Its compiled size is about 90 KB of x86 code and has no dependency on other libraries. It is not the fastest library nor the smallest but it tries to be simple while using asymptotically optimal algorithms. The basic arithmetic operations have a near linear running time.

Features:

Benchmark

Download

Source code: libbf-2020-01-19.tar.gz.

Technical documentation

Related projects

QuickJS relies on LibBF to handle the BigInt, BigFloat and BigDecimal numbers.

LibBF has its roots in TinyPI.

Arbitrary precision floating point libraries:

Licensing

It is released under the MIT license.
Fabrice Bellard - https://bellard.org/