Real constant with mantissa? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Real constant with mantissa?

How to calculate the mantissa like 616e-5 how i can calculate and make in arithemrthic number?

6th Feb 2018, 4:28 PM
Kunal Kumar
Kunal Kumar - avatar
1 Answer
0
Do you speak about the mantissa in the binary representation of floating point numbers ? If yes, only applying a mask and a binary shift can give it to you. If you also want other parts (exponent, sign), you just need to do the same with another mask and another shift ^^
25th Jul 2019, 10:02 AM
Baptiste E. Prunier
Baptiste E. Prunier - avatar