Skip to content

Gholamrezadar/floating_point_experiment

Repository files navigation

Reinterpreting int to float

A simple experiment to see the exponential nature of floating point numbers.

Online Converter : https://www.h-schmidt.net/FloatConverter/IEEE754.html

Results

result1 result_limited

Usage

./build.sh

Offset

int offset, float offset ( starting from 2124092nd number)
1000 10000000000001176588608513461190656.000000
1000 10000000000001176588608513461190656.000000
1000 10000000000001176588608513461190656.000000
1000 10000000000001176588608513461190656.000000
1000 10000000000001176588608513461190656.000000
1000 10999999999993738461096773374967808.000000
1000 10000000000001176588608513461190656.000000
1000 10000000000001176588608513461190656.000000
1000 10000000000001176588608513461190656.000000
1000 10000000000001176588608513461190656.000000
1000 10000000000001176588608513461190656.000000
1000 10000000000001176588608513461190656.000000
1000 10999999999993738461096773374967808.000000
1000 10000000000001176588608513461190656.000000
1000 10000000000001176588608513461190656.000000
1000 10000000000001176588608513461190656.000000
1000 10000000000001176588608513461190656.000000
1000 10000000000001176588608513461190656.000000
1000 10000000000001176588608513461190656.000000
1000 10999999999993738461096773374967808.000000

About

A simple experiment to see the exponential nature of floating point numbers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published