how to format integer number in neolane template

Avatar

Avatar

pankajbisane

Avatar

pankajbisane

pankajbisane

15-10-2015

Hi,

I want to format number  1000   to 1,000.00

How to fix it?

Thanks,

Pankaj

Accepted Solutions (0)

Answers (4)

Answers (4)

Avatar

Avatar

Adobo_Supportus

Avatar

Adobo_Supportus

Adobo_Supportus

15-10-2015

Hey Pankaj, 

To clarify, is this a solution that you came up with or do need further assistance?

~Laurel

Avatar

Avatar

pankajbisane

Avatar

pankajbisane

pankajbisane

15-10-2015

i have personalization block in which code is as below :

<%

var price = 120000;

%>

<%= price%>

Remember price is dynamic value.

It should print $12,0000.00

Avatar

Avatar

Adobo_Supportus

Avatar

Adobo_Supportus

Adobo_Supportus

15-10-2015

Hey Pankaj,

I wanted to check up with you and see if Rahul's suggestion worked. If not please let us know, and if so please mark it correct so other users in the future will know it's the right answer. This simple action helps improve the community for everyone!

Thanks,

Laurel

Avatar

Avatar

Rahsing

Avatar

Rahsing

Rahsing

15-10-2015

Hi Pankaj,

I'm not sure if you can do that within Neolane.

If you're taking an excel export, you can format the data in excel.

Let me know if that works for you.

Rahul