Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom bias. #10

Open
sttng opened this issue Dec 29, 2021 · 0 comments
Open

Add custom bias. #10

sttng opened this issue Dec 29, 2021 · 0 comments

Comments

@sttng
Copy link

sttng commented Dec 29, 2021

I guss currently the Bias is calculated according to the IEEE 754 Standard: Bias: 2^(NoOfExpBits-1)-1. So with 8bit exponent a bias of 127, or with 5bit a bias of 15.

It would be nice to set a custom bias akin similar to what mentioned in https://en.wikipedia.org/wiki/Minifloat , a bias of 2.

Otherwise this is all great and useful for education.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant