5
$\begingroup$

I am looking for the inverse of this question, i.e., way to convert 100000 into a text "100 000" or "100,000". I tried:

ToString[100000, TraditionalForm]
ToString[100000, OutputForm]
ToString[100000, Input]
ToString[DisplayForm[100000]]

but none of them yields the result that I want.

$\endgroup$

1 Answer 1

8
$\begingroup$

How about:

ToString@NumberForm[100000, DigitBlock -> 3]

"100,000"

$\endgroup$
1
  • $\begingroup$ Yes, exactly, thanks! $\endgroup$
    – Felix
    Commented Feb 14, 2017 at 18:17

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