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

#3144
jm.evers
Participant
Up
0
Down
::

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.