how to convert binary float to decimal float?
srs_grp
-1
Light Poster
Recommended Answers
Jump to PostWhat is binary float?
Jump to PostYou don't actually have to go to all that trouble, though...
int val = Integer.parseInt(str, 2); float f = Float.intBitsToFloat(val);
All 8 Replies
BestJewSinceJC
700
Posting Maven
srs_grp
-1
Light Poster
quuba
81
Posting Pro
srs_grp
-1
Light Poster
quuba
81
Posting Pro
neilcoffey
79
Junior Poster in Training
srs_grp
commented:
It worked! Thanks!!
+1
quuba
81
Posting Pro
srs_grp
-1
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.