title: How to convert a float into format of 0.####e# in python
body: <p>Using python, I am trying to print floats in the format of 0.####e#.  For example, 1234.56 is converted to 0.123456e4 or .321 is converted to 0.321e0 etc. I am surprised that an extensive search has not produced any sample code for this exercise. As far as I can tell, neither <a href="https://stackoverflow.com/questions/6913532/display-a-decimal-in-scientific-notation">Display a decimal in scientific notation</a> or <a href="https://stackoverflow.com/questions/53274821/scientific-notation-formatting-in-python">stackoverflow.com/questions/53274821/…</a> address converting a number like 1234.56 into 0.123456e4.</p>
  
  <p>If possible, I would like to use the python f-string to do the conversion.  But any solution is very welcomed.</p>