4 Replies Latest reply on Mar 1, 2018 10:59 AM by Grégoire Michel

    Currency token and decimals...in a snippet

    Matt Fiel

      Hello,

       

      I need to display a currency database value in an email snippet.  I've inserted this value as a token.  However, when I send my test emails,  trailing zeroes are eliminated. 

       

      For instance:

      • A field containing "1.50" in the database is displayed as "1.5" in the email
      • A field containing "1.00" in the database is displayed as "1" in the email

       

      I understand there are velocity scripting solutions to format this number.  However, I don't think you can use velocity script tokens in a snippet?  Is there a way to have the token just be displayed as it appears in the database?

       

      I'm thinking I may need to re-create the entire snippet logic in a velocity script?