Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

multiplication nombre avec séparateur, dans un tpl

 
Post new topic   Reply to topic    Smarty Forum Index -> Language: French
View previous topic :: View next topic  
Author Message
pum
Smarty n00b


Joined: 07 May 2020
Posts: 1

PostPosted: Thu May 07, 2020 9:52 am    Post subject: multiplication nombre avec séparateur, dans un tpl Reply with quote

Bonjour, j'ai un soucis ,
lorsque je multiplie par 2 (par exemple) une variable qui a le format par exemple 5 207,50 (5[espace]207,50), le résultat donné est 10 seulement.

par exemple :
{$pricea=$priceb*2} -> résultat affiché 10

un idée .?

merci.
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1653

PostPosted: Fri May 08, 2020 10:33 pm    Post subject: Reply with quote

Don't format variables before Smarty.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Language: French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP