Skip to content
This repository was archived by the owner on Aug 15, 2021. It is now read-only.

Conversation

@mrkline
Copy link

@mrkline mrkline commented Jul 21, 2020

float.to_be_bytes() has the same effect as float.to_bits().to_be_bytes()

They're presumably optimized to the same code, but the former's intent
is a bit clearer.

float.to_be_bytes() has the same effect as float.to_bits().to_be_bytes()

They're presumably optimized to the same code, but the former's intent
is a bit clearer.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant