>>>>> "Barton" == Barton Willis writes:
Barton> You found a bug. If convenient, please file a bug report.
Barton> I don't have a fix, but here is a work around.
Barton> (%i1) tex(5.6e99^x);
Barton> $$5.5999999999999996 \times 10^{99}^{x}$$
Barton> (%o1) FALSE
Here is a simple solution. The very end of texnumformat could be
replaced with
(strcat "{"
(apply #'strcat firstpart )
" \\times 10^{"
(apply #'strcat (cdr exponent))
"}"
"}")
This places an extra set of braces around the number. That causes tex
to produce
(%i4) tex(5.6e99^x);
$${5.6 \times 10^{+99}}^{x}$$
(%o4) false
That should be ok, right? (Hmm, why does my version of maxima say +99
instead of just 99?) Also, the (%o4) line is actually on the same
line as the tex output. I don't think that's what we want. Some
recent change in maxima?
Ray