Questions tagged [decimal-number]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
63 views

siunitx: horizontal alignment of rows with integers, non-integers with variable number of decimals, “surrounding material”, and brackets

I have the following table: \documentclass{article} \usepackage{mathtools} \usepackage{amsmath} \usepackage{amsthm} \usepackage{MnSymbol} \usepackage{siunitx} \usepackage{longtable} \usepackage{...
2
votes
2answers
35 views

Align columns with numbers by decimal point and ratio symbol (colon :)

I want to achieve alignment by decimal number AND the colon (:) ratio symbol, similar to what is shown in the code below as opposed to what is shown in the figure. I would welcome any suggestions for ...
1
vote
1answer
26 views

Overfull Heading when using Decimal Point Alignment in Table

I want decimal point alignment in my table (below). However this messes up the heading (overfull error), even though I have it across 2 lines. How can I overcome this problem? Thanks \begin{table}[!t]...
0
votes
0answers
28 views

Pgfplots mixes scientific and decimal labels as plot ticks [duplicate]

I am creating a simple plot like this \begin{tikzpicture} \begin{axis}[% width=14cm, ] \addplot table{% -0.02 0.976511902149045 0.02 0.974250140430107 0.06 0.92759014496851 0.10 ...
3
votes
1answer
102 views

How to display numbers like 10,000.42 using siunitx?

I would like to do something like \SI{10,000.42}{\m} using siunitx. But using two potential decimal markers always results in the following error message: Package siunitx Error: Duplicate decimal ...
1
vote
3answers
59 views

How to center values of an r@{}l column? (r@{}l aligns all column numbers along their decimal points)

Writing \documentclass{article} \begin{document} \begin{table} \begin{tabular}{lr@{}lr@{}l} \hline & \multicolumn{2}{c}{First column} & \multicolumn{2}{c}{...
3
votes
1answer
126 views

tikz: from scientific notation to decimal form

How can I get the first abscissa value in decimal form as 0.05 in (0.05,31.9)? It is set to the scientist notation automatically. \documentclass[border=2mm]{standalone} \usepackage{amsmath} \...
3
votes
2answers
394 views

Convert decimal to percentage value

How can I convert a given decimal into the respective percentage value with a certain amount of positions q after the comma? The percentage should be rounded with respect to q+1. For example, I am ...
8
votes
5answers
413 views

Test of integers? Or, round the number if the first two decimal numbers are sufficiently close to 0 or 1?

The following is a MWE, which explains my intention. \documentclass{article} \usepackage{tikz} \usetikzlibrary{math} \begin{document} \tikzmath{ \integer = 4/2; \decimal = 5/3; \integerB=1/3*3; } $\...
6
votes
2answers
238 views

Formatting numbers with smaller glyphs for decimals

I am currently writing up a coursebook in which I handle sets of decimal numbers. As the language of the coursebook is French, the decimal separator has to be a comma and the thousands separator a ...
5
votes
1answer
318 views

Tikz - loglog Scale with strange powers of 10

I am trying to plot some data from numerical simulations and I want to display the data (see code below). But the powers of 10 do have strange additional decimal places (see picture). Is there a way ...
3
votes
1answer
398 views

siunitx: Always force two decimal numbers behind decimal marker

I want to display 2.00 m instead of 2 m, even if the leading number is not a decimal number (= is an integer). Unfortunately all \sisetup-commands I tried did not work... Minimum Working Example (...