Get the latest tech news

Show HN: Floating point arithmetic types in C++ for any size and any base


A floating point arithmetic which works with types of any mantissa, exponent or base in modern header-only C++. - clemensmanert/fas

fas is floating point arithmetic for arbitrary mantissa and exponent types in modern header-only C++. It lets you construct various different float types using template parameters for the mantissa, exponent and base. The Stl's std::numeric_limits is required the limits of the specified types for mantissa and exponent.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of size

size

Photo of base

base

Photo of C++

C++

Related news:

News photo

Plankton balloon to six times size in newly discovered mode of oceanic travel

News photo

Compliant DNA origami nanoactuators as size-selective nanopores

News photo

Show HN: I wrote an autodiff in C++ and implemented LeNet with it