+ 2
How to use float with exponent?
As floating implementation in DSPs there are mentesa and exponent like 5.5x10^2. How to implement it in Python?
3 Respostas
+ 3
scientific notation in python is like->
467 = 4.67e+2
meaning 4.67x10^2
you can convert to this notation by simply
"{:e}".format(550) = 5.5e2
python accepts these as numbers
you don't have to anything to convert from this notation
6.65e-1 = 0.665
if you really want to convert to ax10^c you can write a function to convert to and from the scientific notation
check out the codes titled "Scientific_Notation"
just a demo
+ 1
do you mean that you want to convert 5.5x10^2 to 550 and vice-versa ?
0
yes, exactly but how to implement it as DSP point of view.