Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I create a DistributionFitTest of a distribution I receive very low P values, e.g. $2.456750213008007 \times 10^{-367}$. When I copy this (by right clicking and copy to $\LaTeX$), and insert it in my $\LaTeX$ document, I receive the number as

\text{2.4567502130080068515188263453399491266$\grave{ }$15.778498511135323*${}^{\wedge}$-367}

Where as I would prefer to receive a rounded value such as:

\text{2.457} \times 10^{-367}

Or at least receive an output equivalent, so that I don't have round up manually or edit "*" to "\times", or add up "10".

share|improve this question
up vote 4 down vote accepted
ScientificForm[
  2.4567502130080068515188263453399491266`15.778498511135323*^-367, 
  4] // TeXForm

2.457\times 10^{-367}

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.