Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bits: Add from_f32le, to_f32le, ... #730

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

Draft
wader wants to merge 1 commit into master
base: master
Choose a base branch
Loading
from to-from-float
Draft

bits: Add from_f32le, to_f32le, ... #730

wader wants to merge 1 commit into master from to-from-float

Conversation

@wader
Copy link
Owner

@wader wader commented Aug 3, 2023
edited
Loading

TODO:

  • should somehow generalize to/from encodings?
  • move code to somewhere else?

@wader wader marked this pull request as draft August 3, 2023 13:12
Copy link
Owner Author

wader commented Aug 3, 2023

Needed this for some work stuff, should probably to done in a nice way, usage:

$ go run . -n '"C76E9EBE" | from_hex | from_f32le | ., to_f32le'
-0.30943891406059265
 │00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 15 16 17│0123456789abcdef01234567│
0x0│c7 6e 9e be│ │.n..│ │.: raw bits 0x0-0x3.7 (4)

TODO:
- show somehow generalize to/from encodings?
- move code to somwewhere else?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /