Skip to content

Exact floating-point number #7277

Answered by orthoxerox
udaken asked this question in Q&A
Jun 15, 2023 · 3 comments · 6 replies
Discussion options

You must be logged in to vote

BitConverter.UInt64BitsToDouble() is my preferred solution when I need to ensure the bit pattern my double should have.

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@CyrusNajmabadi
Comment options

@tannergooding
Comment options

@tannergooding
Comment options

@saucecontrol
Comment options

Comment options

You must be logged in to vote
1 reply
@tannergooding
Comment options

Comment options

You must be logged in to vote
1 reply
@udaken
Comment options

Answer selected by udaken
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants