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

The behavior of Numo::Bit#to_string is not consistent. #187

Open
kojix2 opened this issue May 20, 2021 · 1 comment
Open

The behavior of Numo::Bit#to_string is not consistent. #187

kojix2 opened this issue May 20, 2021 · 1 comment

Comments

@kojix2
Copy link
Contributor

kojix2 commented May 20, 2021

Hello.

I found some strange behavior of Numo::Bit.
Is this some kind of bug?

Step to reproduce

Create a Numo::Bit object.

b = Numo::Bit.ones(1,2)

Call to_string. The results are inconsistent.
If you run irb again, you will get a different result.

b.to_string

# "W" or
# "#" or
# "\x87" ... etc
@kojix2 kojix2 changed the title The behavior of #Numo::Bit#to_string is not stable. The behavior of Numo::Bit#to_string is not consistent. May 20, 2021
@kojix2
Copy link
Contributor Author

kojix2 commented May 20, 2021

I understood it somehow.
Maybe this is not a bug.
We need at least 8 bits to call to_string.

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

1 participant