blob: 5f355bbfb1f58dbdde2ae9f0359ab55d2bf3fa2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
\documentclass[11pt,article,french]{memoir}
\usepackage{babel}
\usepackage[autolanguage]{numprint}
%% Activer les lignes appropriées selon le moteur utilisé
\usepackage[utf8]{inputenc} % LaTeX
\usepackage[T1]{fontenc} % LaTeX
% \usepackage{fontspec} % XeLaTeX
\usepackage{icomma} % virgule intelligente en mathématiques
%% Sous-légendes dans les environnements 'table'
\newsubfloat{table}
\begin{document}
\begin{table}
\caption{Conversion du nombre décimal $23,31$ en binaire.}
\begin{minipage}[t]{0.45\linewidth}
\begin{tabular*}{\linewidth}{crrcc}
\toprule
$i$ & \multicolumn{1}{c}{$v$} & $\lfloor v/2 \rfloor$ & $v \bmod 2$ & $x_i$ \\
\midrule
$0$ & $23$ & $11$ & $1$ & $1$ \\
$1$ & $11$ & $5$ & $1$ & $1$ \\
$2$ & $5$ & $2$ & $1$ & $1$ \\
$3$ & $2$ & $1$ & $0$ & $0$ \\
$4$ & $1$ & $0$ & $1$ & $1$ \\
\bottomrule
\end{tabular*}
\end{minipage}
\hfill
\begin{minipage}[t]{0.45\linewidth}
\begin{tabular*}{\linewidth}{ccccc}
\toprule
$i$ & $v$ & $2v$ & $\lfloor 2v \rfloor$ & $x_{-i}$ \\
\midrule
$1$ & $0,31$ & $0,62$ & $0$ & $0$ \\
$2$ & $0,62$ & $1,24$ & $1$ & $1$ \\
$3$ & $0,24$ & $0,48$ & $0$ & $0$ \\
$4$ & $0,48$ & $0,96$ & $0$ & $0$ \\
$5$ & $0,96$ & $1,92$ & $1$ & $1$ \\
\bottomrule
\end{tabular*}
\end{minipage}
\end{table}
\end{document}
|