Répondre à : Position caractère dans chaîne de texte

Accueil Forums Programmation WIMS Programmation d’exercices OEF Position caractère dans chaîne de texte Répondre à : Position caractère dans chaîne de texte

#3140
jm.evers
Participant
Up
0
Down
::

Hi,
You could use ‘moneyprint’ for printing a number with n decimals (default is 2 decimals)

\text{A = 1}
\text{m = wims(exec moneyprint \A )}
\m = 1.00
if you want n decimals use
\integer{n = 4}
\text{m = wims(exec moneyprint \A \n )}
\m = 1.0000

hope this helps,
Joke