Skip to content

FS-NulL/Fixed-Point

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 

Repository files navigation

Fixed-Point

A base10 fixed point numeric library for c++

Useful in code bases where decimal numbers are being held in integers with arbitary number of decimal places. eg 209 being used to represent 20.9. Supports basic arithmatic and output streaming.

Usage

	Fixed<4> pi = 31415;
	Fixed<3> pie = 3142;

With custom internal storage type:

	Fixed<3, int> a(3.141);
	Fixed<2, long long> b(3.142);

About

Fixed point numeric library for c++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages