Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

columns formatting
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: columns formatting
#44322
columns formatting 11 Years, 2 Months ago Karma: 0
Hello,
my table runs a query on mySQL which provides a numeric field.
Since I'm in Italy, I should show the numbers using "." a thousand separator and "," for decimals (4 decimals).

For example:
- 123.4 shown be shown as 123,4000
- 4 should be shown as 4,0000
- 1234.56 should be shown as 1.234,5600
- 12345678,9 shoud be shown as 12.345.678,9000

I tried some tests in Options -> Column Settings -> Format but the best thing I did was "{$value|number_format:4}" which just show 4 decimals, however it does NOT put the right decimal separator (,) and does NOT Group the thousands together.

Thank you

Mauro
The administrator has disabled public write access.
 
#44330
Re:columns formatting 11 Years, 2 Months ago Karma: 760
Hello,

Use the following value for "Columns settings -> Format" parameter:

{$value|number_format:4:,:.}

Regards,
ARI Soft
The administrator has disabled public write access.
 
#44352
Re:columns formatting 11 Years, 2 Months ago Karma: 0
simply perfect. As Always. Thank you
The administrator has disabled public write access.
 
Go to topPage: 1