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
24 octobre 2015 à 00:02
#3144
Participant
::
Hi,
the best way is to upgrade your wims…and not just for moneyprint…
however there is yet another way, using BC (called float_calc in wims)
(bc will truncate, so you have to add 0.005)
\text{A=123.44444322}
\text{price = wims(exec float_calc scale=2; (\A+0.005)/1)}
\statement{ price = \price}
Joke
-
Cette réponse a été modifiée le il y a 9 années et 4 mois par
jm.evers.