Skip to content

A simple C++ library to simulate different float format behaviours.

Notifications You must be signed in to change notification settings

kilianyp/num-format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple tool to simulate different float behaviour.

Usage

#include "float.h"
typedef FloatBase<false, 23, 8> Float;

int main () {
    Float test1 = 9000.0f;
    Float test2 = 15.3;
    Float test3 = test1 + test2;
}

To check the Demo:

make
./demo

Supports

  • Prefixing
  • Postfixing
  • Addition
  • Subtraction
  • Multiplication
  • Comparison

TODO

  • Rounding

About

A simple C++ library to simulate different float format behaviours.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published