<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Format Numbers With Thousands Separators in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Format-Numbers-With-Thousands-Separators/m-p/232306#M11202</link>
    <description>&lt;P&gt;I think you'll have to go the string option. Ideally you'd store the number in the DB without the formatting and apply the formatting in the template.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jul 2018 07:54:36 GMT</pubDate>
    <dc:creator>PaulAxonGarside</dc:creator>
    <dc:date>2018-07-26T07:54:36Z</dc:date>
    <item>
      <title>Format Numbers With Thousands Separators</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Format-Numbers-With-Thousands-Separators/m-p/232304#M11200</link>
      <description>&lt;P&gt;I have created a new email module via the design tools. Within that module, I have created a field name &lt;CODE&gt;starting_price&lt;/CODE&gt; that is configured as a number. I'd like to use said field in the HTML/Hubl with thousands separators.&lt;BR /&gt;
&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;A class="lightbox" href="https://community.hubspot.com/legacyfs/online/uploads/default/original/2X/d/d0038e402d34aec0aeacad1672382fe80cab5c46.png" data-download-href="/legacyfs/online/uploads/default/d0038e402d34aec0aeacad1672382fe80cab5c46" title="Screen Shot 2018-07-19 at 10.11.57 AM.png" rel="nofollow noopener"&gt;&lt;IMG src="https://community.hubspot.com/legacyfs/online/uploads/default/optimized/2X/d/d0038e402d34aec0aeacad1672382fe80cab5c46_1_270x500.png" alt="57%20AM" width="270" height="500" /&gt;&lt;DIV class="meta"&gt;
&lt;SPAN class="filename"&gt;Screen Shot 2018-07-19 at 10.11.57 AM.png&lt;/SPAN&gt;&lt;SPAN class="informations"&gt;326x603 18.2 KB&lt;/SPAN&gt;&lt;SPAN class="expand"&gt;&lt;/SPAN&gt;
&lt;/DIV&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;When someone uses this module when creating a new marketing email, they are asked enter starting price but the number is not formatted with thousands separators. For example, if the price is $1,899, the user enters &lt;CODE&gt;1899&lt;/CODE&gt; in the email field form (HubSpot adds the comma in the starting price input form field), but it's also being displayed as &lt;CODE&gt;1899&lt;/CODE&gt; in the email template.&lt;BR /&gt;
&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;A class="lightbox" href="https://community.hubspot.com/legacyfs/online/uploads/default/original/2X/9/9c1834630298be6b8abe937d1dd428a5515cb452.png" data-download-href="/legacyfs/online/uploads/default/9c1834630298be6b8abe937d1dd428a5515cb452" title="Screen Shot 2018-07-19 at 10.15.45 AM.png" rel="nofollow noopener"&gt;&lt;IMG src="https://community.hubspot.com/legacyfs/online/uploads/default/optimized/2X/9/9c1834630298be6b8abe937d1dd428a5515cb452_1_482x500.png" alt="45%20AM" width="482" height="500" /&gt;&lt;DIV class="meta"&gt;
&lt;SPAN class="filename"&gt;Screen Shot 2018-07-19 at 10.15.45 AM.png&lt;/SPAN&gt;&lt;SPAN class="informations"&gt;529x548 20 KB&lt;/SPAN&gt;&lt;SPAN class="expand"&gt;&lt;/SPAN&gt;
&lt;/DIV&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I'd like to format the number to be formatted with thousands separators without asking the user to enter a &lt;CODE&gt;string&lt;/CODE&gt; in the form input.&lt;/P&gt;
&lt;P&gt;Thoughts?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 17:18:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Format-Numbers-With-Thousands-Separators/m-p/232304#M11200</guid>
      <dc:creator>jmci</dc:creator>
      <dc:date>2018-07-19T17:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Format Numbers With Thousands Separators</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Format-Numbers-With-Thousands-Separators/m-p/232305#M11201</link>
      <description>&lt;P&gt;Any ideas or suggestions?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 14:25:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Format-Numbers-With-Thousands-Separators/m-p/232305#M11201</guid>
      <dc:creator>jmci</dc:creator>
      <dc:date>2018-07-23T14:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Format Numbers With Thousands Separators</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Format-Numbers-With-Thousands-Separators/m-p/232306#M11202</link>
      <description>&lt;P&gt;I think you'll have to go the string option. Ideally you'd store the number in the DB without the formatting and apply the formatting in the template.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 07:54:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Format-Numbers-With-Thousands-Separators/m-p/232306#M11202</guid>
      <dc:creator>PaulAxonGarside</dc:creator>
      <dc:date>2018-07-26T07:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Format Numbers With Thousands Separators</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Format-Numbers-With-Thousands-Separators/m-p/288014#M26652</link>
      <description>&lt;P&gt;For anyone who's still looking for the solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hubl has some filters available: you can use format_currency("en-US") for thousand separator. It'll also add a "$" sign in front of the number.&lt;/P&gt;&lt;P&gt;if item.price = 2500&lt;/P&gt;&lt;P&gt;Ex:&amp;nbsp; {{ item.price | format_currency("en-US") }} ==&amp;gt; output $2,500&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://designers.hubspot.com/docs/hubl/hubl-supported-filters#format-currency" target="_blank"&gt;https://designers.hubspot.com/docs/hubl/hubl-supported-filters#format-currency&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 15:24:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Format-Numbers-With-Thousands-Separators/m-p/288014#M26652</guid>
      <dc:creator>Riadhoq</dc:creator>
      <dc:date>2019-08-26T15:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Format Numbers With Thousands Separators</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Format-Numbers-With-Thousands-Separators/m-p/433683#M43027</link>
      <description>&lt;P&gt;Unfortunately no easy way to do this other than combining the &lt;STRONG&gt;format_currency&lt;/STRONG&gt; and &lt;STRONG&gt;replace&lt;/STRONG&gt; filters (kinda feel like there should be a &lt;STRONG&gt;format_number&lt;/STRONG&gt; filter)&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{{ my_number|format_currency('en-US')|replace('$', '') }}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 20:35:17 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Format-Numbers-With-Thousands-Separators/m-p/433683#M43027</guid>
      <dc:creator>John</dc:creator>
      <dc:date>2021-05-03T20:35:17Z</dc:date>
    </item>
  </channel>
</rss>

