 % This file is public domain

\documentclass{article}
\usepackage[french]{babel}
\usepackage{fmtcount}
\usepackage{array}
\usepackage{amsmath}
\usepackage{xcolor}
\usepackage[T1]{fontenc}
\newcommand*\formatterundertest[1]{}
\makeatletter
\newcommand*{\printrow}[2]{%
  \def\@tempa{#1}%
  \ifx\@tempa\@empty\else
  \texttt{\textbackslash fmtsetoptions\{french=\{#1\}\}}\newline
  \fmtcountsetoptions{french={#1}}%
  \fi
  \begin{tabular}{@{}>{\raggedleft\arraybackslash}p{\dimexpr0.3\linewidth-\tabcolsep}>{\raggedright\arraybackslash}p{\dimexpr0.7\linewidth-\tabcolsep}@{}}%
    #2&$\rangle$\formatterundertest{#2}$\langle$\\\hline
  \end{tabular}\newline
  \def\@tempb{%
    \ifx\@tempa\space
      \expandafter\@gobble
    \fi
  }%
  \futurelet\@tempa\@tempb
}
\def\fc@frenchoptions@submillion@dos{$\bullet$\-$\bullet$}
\def\fc@frenchoptions@supermillion@dos{$\star$\-$\star$}

\makeatother
\newcommand*\test{\noindent
\printrow{all plural}{1}
\printrow{}{2}
\printrow{}{3}
\printrow{}{4}
\printrow{}{5}
\printrow{}{6}
\printrow{}{7}
\printrow{}{8}
\printrow{}{9}
\printrow{}{10}
\printrow{}{11}
\printrow{}{12}
\printrow{}{13}
\printrow{}{14}
\printrow{}{15}
\printrow{}{16}
\printrow{}{17}
\printrow{}{18}
\printrow{}{19}
\printrow{}{20}
\printrow{}{21}
\printrow{}{22}
\printrow{}{29}
\printrow{scale=long}{1 000 000 000 000 000 000 000 000 000 000 000 000 000}
\printrow{scale=short}{1 000 000 000 000 000 000 000 000 000 000 000 000 000}
\printrow{scale=recursive}{1 000 000 000 000 000 000 000 000 000 000 000 000 000}
\printrow{}{1 000 000 000 000 000 000 000 000 000 000 000 000}
\printrow{}{1 000 000 000 000 000 000 000 000 000 000 000}
\printrow{}{1 000 000 000 000 000 000 000 000 000 000}
\printrow{scale=long}{2 000 000 000 000 000 000 000 000 000 000 000 000 000}
\printrow{scale=short}{2 000 000 000 000 000 000 000 000 000 000 000 000 000}
\printrow{scale=recursive}{2 000 000 000 000 000 000 000 000 000 000 000 000 000}
\printrow{}{2 000 000 000 000 000 000 000 000 000 000 000 000}
\printrow{}{2 000 000 000 000 000 000 000 000 000 000 000}
\printrow{}{2 000 000 000 000 000 000 000 000 000 000}
\printrow{}{156 404 724 555 428 769 499 217 321 941}
\printrow{}{4 171 764 135 702 262 349 567 001 574 584}
\printrow{}{97 415 427 916 562 250 398 973 107 371 704}
\printrow{}{80}
\printrow{}{81}
\printrow{}{21}
\printrow{}{31}
\printrow{}{200}
\printrow{}{201}
\printrow{}{200 000}
\printrow{}{200 000 000}
\printrow{}{201 000 000}
\printrow{}{80 000}
\printrow{}{80 000 000}
\printrow{}{81 000}
\printrow{}{81 000 000}
\printrow{all plural,mil plural=multiple}{1000}
\printrow{}{2000}
\printrow{}{1001}
\printrow{}{2001}
\printrow{}{1900}
\printrow{}{2012}
\printrow{}{900}
\printrow{all plural,mil plural=multiple,mil plural mark=s}{2000}
}

\begin{document}

\section{\textbackslash numberstringnum\{\#1\}}
\def\formatterundertest#1{\numberstringnum{#1}}
\test

\section{\textbackslash numberstringnum\{\#1\}[f]}
\def\formatterundertest#1{\numberstringnum{#1}[f]}
\test

\section{\textbackslash ordinalstringnum\{\#1\}}
\def\formatterundertest#1{\ordinalstringnum{#1}}
\test

\section{\textbackslash ordinalstringnum\{\#1\}[f]}
\def\formatterundertest#1{\ordinalstringnum{#1}[f]}
\test

\section{\textbackslash Numberstringnum\{\#1\}}
\def\formatterundertest#1{\Numberstringnum{#1}}
\test

\section{\textbackslash Numberstringnum\{\#1\}[f]}
\def\formatterundertest#1{\Numberstringnum{#1}[f]}
\test

\section{\textbackslash Ordinalstringnum\{\#1\}}
\def\formatterundertest#1{\Ordinalstringnum{#1}}
\test

\section{\textbackslash Ordinalstringnum\{\#1\}[f]}
\def\formatterundertest#1{\Ordinalstringnum{#1}[f]}
\test



\end{document}
