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

update documentation around the division operator #309

Merged
merged 1 commit into from
Aug 5, 2024
Merged

Conversation

arvidn
Copy link
Contributor

@arvidn arvidn commented Aug 5, 2024

As of the hard fork, it supports negative operands

Copy link
Contributor

@danieljperry danieljperry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@danieljperry danieljperry merged commit 29d6aba into main Aug 5, 2024
8 checks passed
@danieljperry danieljperry deleted the negative-div branch August 5, 2024 14:13
Comment on lines +36 to +37
| / | `(/ A B)` | Divides two atoms. Rounds towards negative |
| | | infinity. |

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

```

</Runnable>
In earlier versions of Chia, the `/` operator produced incorrect rounding when used with negative numbers. It was disabled in a [soft-fork at block height 2,300,000](https://www.chia.net/2022/03/04/divided-we-fork.en.html). It was enabled again in the hard fork, with correct behavior. It always rounds towards negative infinity

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
In earlier versions of Chia, the `/` operator produced incorrect rounding when used with negative numbers. It was disabled in a [soft-fork at block height 2,300,000](https://www.chia.net/2022/03/04/divided-we-fork.en.html). It was enabled again in the hard fork, with correct behavior. It always rounds towards negative infinity
In earlier versions of Chia, the `/` operator produced incorrect rounding when used with negative numbers. It was disabled in a [soft-fork at block height 2,300,000](https://www.chia.net/2022/03/04/divided-we-fork.en.html). It was enabled again in the hard fork, with correct behavior. It always rounds towards negative infinity.

@AmineKhaldi AmineKhaldi mentioned this pull request Aug 5, 2024
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

Successfully merging this pull request may close these issues.

3 participants