objectionary / deog

Decoration Graph of EO objects
MIT License
4 stars 2 forks source link

Fix `is-int` and `is-float` attributes of `number` using `as-bytes` #38

Closed c71n93 closed 8 months ago

c71n93 commented 8 months ago

We are planning to make eq attribute to be an atom https://github.com/objectionary/eo/issues/2547. Attributes is-float and is-int of object number assumes, that 0.0 is not equals to -0.0. After closing https://github.com/objectionary/eo/issues/2547 this won't be true. Thus, we need to move logic of 0.0 and -0.0 comparison from current eq attribute to is-float and is-int attributes, and compare this values "as-bytes".