You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
@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.?
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
anddecimal128
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.The text was updated successfully, but these errors were encountered: