Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Sometimes I make a calculation in Mathematica that produces a big number, which Mathematica shows like so:

-1.52522*10^7

This is annoying to me, because I want to see the number normally, without exponential notation, something like this:

-15,252,264.7448716

How can I make Mathematica show the number normally?

share|improve this question

marked as duplicate by Mr.Wizard Apr 28 '13 at 14:07

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Your cross posted, please delete your question SO. –  belisarius Apr 28 '13 at 13:15
    
@belisarius Done. –  Ram Rachum Apr 28 '13 at 13:26
    
AccountingForm omits the digits after the decimal point, and also uses parentheses for negative numbers which is annoying. –  Ram Rachum Apr 28 '13 at 13:29
    
@Artes AccountingForm shows ugly negative numbers :) –  belisarius Apr 28 '13 at 13:30
1  
AccountingForm[-15252264.7448716`15, NumberSigns -> {"-", ""}] ? –  KennyColnago Apr 28 '13 at 15:19
show 2 more comments

1 Answer 1

You may use for example:

pr[n_] := NumberForm[n, Infinity, ExponentFunction -> (Null &)]

so that:

pr[1.52522*10^7]

(* 15252200. *)
share|improve this answer
add comment

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