% !TeX encoding = UTF-8
% !TeX spellcheck = en_US
% !TEX TS-program = lualatex
\documentclass{article}
\usepackage[nostamp]{moodle}
\ifPDFTeX % FOR LATEX and PDFLATEX
	\usepackage[utf8]{inputenc} % necessary
	\usepackage[T1]{fontenc} % necessary
\else % assuming XELATEX or LUALATEX
	\usepackage{fontspec}
\fi
\usepackage{siunitx}
\begin{document}

\section*{Introduction}

This document is intended to check the support of the tolerance key for 
numerical questions.

\begin{quiz}[tolerance=0]{Tolerance}
\begin{numerical}[tolerance=2]{Num 1}
Give a number
\item[tolerance=4] 1
\item 0
\item[fraction=0,feedback={nope}] *
\end{numerical}
\begin{numerical}{Num 2}
Give a number
\item[tolerance={1,65e-4}] 1,45E-3
\item 0
\item[fraction=0,feedback={nope}] *
\end{numerical}
\begin{cloze}[tolerance=2]{ClozeNum 1}
\begin{numerical}[tolerance=3]
Give a number
\item[tolerance=4] 1
\item 0
\item[fraction=0,feedback={nope}] *
\end{numerical}
\begin{numerical}
Give a number
\item[tolerance=4] 1
\item 0
\item[fraction=0,feedback={nope}] *
\end{numerical}
\end{cloze}
\begin{cloze}{ClozeNum 2}
\begin{numerical}
Give a number
\item[tolerance={1,65E-4}] 1,45e-3
\item 0
\item[fraction=0,feedback={nope}] *
\end{numerical}
\end{cloze}
\end{quiz}
\end{document}