T
T
teamtaraz2018-07-05 11:33:47
Smarty
teamtaraz, 2018-07-05 11:33:47

How to divide million?

Please help me understand the code

{%$message.fields.p.0.value.num|number_format:2:",":"."%}<span>₸</span>

Withdraw 52.000.000.00 like
this And I wanted
52.0 million like this

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2018-07-05
@thewind

You need to process this number in advance and add the type (the word "million" or "thousands") based on the order.
Smarty does not do this by itself, of course.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question