We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
`let x = 3; let bits_x = x.to_le_bits(4);
for i in 0..4 { let mut bit = bits_x[i]; std::println(bit); }`
I've tried to_le_bits and to_be_bits as a Field method to write a if comparision statement for the Fields, however, to_be_bits doesn't work properly
to_be_bits
for to_le_bits(), the result is 0x01 0x01 0x 0x
for to_be_bits(), the result is 0x01 0x01 0x 0x
None
nargo 0.5.1 (git version hash: 7f6dede, is dirty: false)
No response
No
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Aim
`let x = 3;
let bits_x = x.to_le_bits(4);
Expected Behavior
I've tried to_le_bits and to_be_bits as a Field method to write a if comparision statement for the Fields, however,
to_be_bits
doesn't work properlyBug
for to_le_bits(), the result is
0x01
0x01
0x
0x
for to_be_bits(), the result is
0x01
0x01
0x
0x
To Reproduce
Installation Method
None
Nargo Version
nargo 0.5.1 (git version hash: 7f6dede, is dirty: false)
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response
The text was updated successfully, but these errors were encountered: