Exponent mantissa form of real numbers

17 views (last 30 days)
Dobs
Dobs on 26 Oct 2021
Commented: Steven Lord on 26 Oct 2021
Hi,
I'm supposed to convert the following real numbers into exponent mantissa form:
a = 789.34
b = 0.0001
c = 400000000000
My first question is: what does exponent mantissa form mean? I've read something about binary online but I doubt that that's what we're supposed to do in this exercise.
My second question is how do I convert the numbers above into exponent mantissa form using matlab?
Any help is greatly appreciated!
Many thanks,
Dobs

Answers (1)

James Tursa
James Tursa on 26 Oct 2021
Edited: James Tursa on 26 Oct 2021
Without seeing the actual wording of the assignment, I would assume this simply means "floating point notation". E.g.,
123.456 can be written 1.23456 x 10^2 or 1.23456e2
.0123456 can be written 1.23456 x 10^-2 or 1.23456e-2
You can use lowercase e or uppercase E for the exponent. What is the actual wording of the assignment?
  6 Comments
Steven Lord
Steven Lord on 26 Oct 2021
The log2 function may also be of use.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!