Math & ScienceFormatting for long Numbers

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
LKB
Posts: 19
Joined: Wed Jul 11, 2012 5:19 pm

Formatting for long Numbers

Post by LKB »

Hi,

I am trying to format my number so they will appear in group of 3 (for easy reading). In other words, I would like to know how this

Code: Select all

3986004.418\cdot10^{8}\text{\ensuremath{\nicefrac{m^{3}}{s^{2}}}}
can be changed automatically to 3 986 004.418 (...).

Cheers for help,

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Formatting for long Numbers

Post by localghost »

Use the excellent siunitx package.


Best regards and welcome to the board
Thorsten
LKB
Posts: 19
Joined: Wed Jul 11, 2012 5:19 pm

Re: Formatting for long Numbers

Post by LKB »

Thank you.
Seems to work with Lyx after I installed the following: siunitx, l3kernel,l3packages
Post Reply