I'm trying to get output with all of my numbers in scientific notation. Mathematica doesn't seem to use scientific notation until the exponent is 6. These are all machine numbers. I thought I could use
NumberForm and put a formula in for
Log[10,x] to force the exponent.
So I did this:
NumberForm[123456., ExponentFunction -> (Floor[Log[10, 123456.]] &)]
However, when I try this and reference the number, as follows, it doesn't work.
NumberForm[123456., ExponentFunction -> (Floor[Log[#]] &)]
What am I doing wrong?