Formating a float/double to scientific notation or Si units I am trying to make a seemingly simple piece of code that I am unable to get working.