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

Posit floating point support #21

Piedone opened this Issue Oct 16, 2017 · 3 comments


2 participants

Piedone commented Oct 16, 2017

Posit is a floating point number type that's better than the usual IEEE floats but can be easily used as a drop-in replacement still. Let's see this instead of Unum.

See the sources below here:

Let's create a generally usable .NET library which is transformable with Hastlayer.

@Piedone Piedone added this to To Do in Hastlayer Oct 16, 2017

@Piedone Piedone moved this from To Do to In Progress in Hastlayer Oct 21, 2017

This was referenced Oct 21, 2017

@Piedone Piedone added the feature label Dec 10, 2017


This comment has been minimized.


Piedone commented Dec 18, 2017

Posit work ongoing in this repo, on this branch:


This comment has been minimized.

antonfirsov commented Feb 14, 2018

I don't think it's worth the efforts at this point.
Feels like a rabbit hole: exciting, but maybe less critical from the POV of product adoption rates. Most of the now-realistic scenarios could be managed using basic fixed-point math.


This comment has been minimized.


Piedone commented Feb 14, 2018

Since it's also a good thorough test of Hastlayer itself we've mostly completed it (the results including a lot of bugs fixed in Hastlayer, and support for method inlining added).

Nevertheless fixed-point will indeed be the most efficient choice every time (with floating point only to be used if you specifically need floating point, not just the ability to use fractions) and apart from handling this with integers you can also do this with the built-in Fix64 type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment