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

IEEE 754-2008 Decimal format #242

Closed
danini-the-panini opened this issue Oct 22, 2021 · 3 comments
Closed

IEEE 754-2008 Decimal format #242

danini-the-panini opened this issue Oct 22, 2021 · 3 comments

Comments

@danini-the-panini
Copy link
Contributor

I am implementing parsing for some of the reserved type annotations mentioned in the SPEC. See my PR here: danini-the-panini/kdl-rb#6

I would like to know what a string representation of a IEEE 754-2008 decimal format look like, since I can't seem to find any examples. Similarly, I'm wondering what the expected outcome of using decimal64 and decimal128 on a float are, and whether that's something I should take into account for the Ruby implementation, considering Ruby doesn't have much in the way of different number types compared to something like rust.

@danini-the-panini
Copy link
Contributor Author

This may have some overlap with #235

@tabatkins
Copy link
Contributor

As far as I could tell from the paper, it should look identical like any other float: integer part, decimal part, exponent part. I just passed the characters straight to Python's decimal type.

@Patitotective
Copy link
Contributor

@tabatkins
Could you please tell in which specific page/section of the paper you found that?
And what does identical like any other float means? Optional plus or minus sign at the beginning of the decimal? Is it also allowed after the e exponent? Are dots allowed at the end of a decimal 1.?

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

3 participants