[Tiki-devel] Tiki Mathematical calculation, do we have a roundup function ?

Bernard Sfez via TikiWiki-devel <[email protected]>
Newsgroups gmane.comp.cms.tiki.devel
Message-ID <[email protected]>
Hello,

I’m looking for a way to roundup, rundown 2 digits numbers with Tiki.
The idea is to allow multi-currency prices adjustment when they are calculated automatically.

IE: You have a base price of $9.99 from this (tracker field) other prices are calculated based on the currency rate: 8.77€, 32.15ILS, etc…
Ideally while a shop manager want to keep the $9.99 he would like other prices to look like : 8.99€, 32.99ILS or 8.50€, 32.50ILS etc...

I checked on Tiki https://doc.tiki.org/Calculations but can’t see an easy way.

I was wondering if someone has a clever way to do it from the tracker part.

Bernard

PS: I understand that using smarty template I should be able to do any calculation (https://stackoverflow.com/questions/32072039/smarty-round-up-to-decimal and more) however the tracker value will be different from the tracker displayed in some shop page which is really not a good idea.

_______________________________________________
TikiWiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.