What’s the Java’s float.floatToRawIntBits method implementation in C# ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If I understand the Java version correctly it should be:
This puts the bytes representing the float into an integer.
Alternatively, a more complex (but probably faster) way to do it is to create a struct: