<?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 How to create a precise decimal field (for amounts of currency) in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-create-a-precise-decimal-field-for-amounts-of-currency/m-p/324809#M11810</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I want to create a field to store a precise value (like a monetary value, for example), so I don't want to use floating point formats like double.
But I've seen that in schema, the only two decimal types I can create are xs:decimal and xs:double, which, according to &lt;A href="https://doc.nuxeo.com/710/nxdoc/schema-fields/" target="test_blank"&gt;https://doc.nuxeo.com/710/nxdoc/schema-fields/&lt;/A&gt; , are stored both as double.&lt;/P&gt;
&lt;P&gt;I would like to use something like BigDecimal, because I'm afraid to lose the real value that the user wanted to store.&lt;/P&gt;
&lt;P&gt;Is it possible to add something like this?
If not, what is the way to go, storing as a String with validators? I've seen that in a question ( &lt;A href="https://answers.nuxeo.com/general/q/20ba8963e6db40768835d2f9f75020a7/What-is-the-best-way-to-enter-and-store-amounts-of-currency"&gt;https://answers.nuxeo.com/general/q/20ba8963e6db40768835d2f9f75020a7/What-is-the-best-way-to-enter-and-store-amounts-of-currency&lt;/A&gt; ), but it is a bit old and I don't know if now there is another solution.&lt;/P&gt;
&lt;P&gt;Thank you very much in advance,&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jan 2017 19:11:41 GMT</pubDate>
    <dc:creator>ioihanguren_</dc:creator>
    <dc:date>2017-01-04T19:11:41Z</dc:date>
    <item>
      <title>How to create a precise decimal field (for amounts of currency)</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-create-a-precise-decimal-field-for-amounts-of-currency/m-p/324809#M11810</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I want to create a field to store a precise value (like a monetary value, for example), so I don't want to use floating point formats like double.
But I've seen that in schema, the only two decimal types I can create are xs:decimal and xs:double, which, according to &lt;A href="https://doc.nuxeo.com/710/nxdoc/schema-fields/" target="test_blank"&gt;https://doc.nuxeo.com/710/nxdoc/schema-fields/&lt;/A&gt; , are stored both as double.&lt;/P&gt;
&lt;P&gt;I would like to use something like BigDecimal, because I'm afraid to lose the real value that the user wanted to store.&lt;/P&gt;
&lt;P&gt;Is it possible to add something like this?
If not, what is the way to go, storing as a String with validators? I've seen that in a question ( &lt;A href="https://answers.nuxeo.com/general/q/20ba8963e6db40768835d2f9f75020a7/What-is-the-best-way-to-enter-and-store-amounts-of-currency"&gt;https://answers.nuxeo.com/general/q/20ba8963e6db40768835d2f9f75020a7/What-is-the-best-way-to-enter-and-store-amounts-of-currency&lt;/A&gt; ), but it is a bit old and I don't know if now there is another solution.&lt;/P&gt;
&lt;P&gt;Thank you very much in advance,&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 19:11:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-create-a-precise-decimal-field-for-amounts-of-currency/m-p/324809#M11810</guid>
      <dc:creator>ioihanguren_</dc:creator>
      <dc:date>2017-01-04T19:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a precise decimal field (for amounts of currency)</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-create-a-precise-decimal-field-for-amounts-of-currency/m-p/324810#M11811</link>
      <description>&lt;P&gt;There's no decimal type in Nuxeo at the moment. You can follow &lt;A href="https://jira.nuxeo.com/browse/NXP-12071"&gt;NXP-12071&lt;/A&gt; to get notified if work on this gets scheduled. No customer has yet requested this kind of feature.&lt;/P&gt;
&lt;P&gt;As a workaround you can use a String like suggested in the question you link to, or you can use an integer with an implied scale factor to represent your decimals.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 20:09:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-create-a-precise-decimal-field-for-amounts-of-currency/m-p/324810#M11811</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2017-01-04T20:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a precise decimal field (for amounts of currency)</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-create-a-precise-decimal-field-for-amounts-of-currency/m-p/324811#M11812</link>
      <description>&lt;P&gt;Thanks, Florent!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 09:28:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-create-a-precise-decimal-field-for-amounts-of-currency/m-p/324811#M11812</guid>
      <dc:creator>ioihanguren_</dc:creator>
      <dc:date>2017-01-05T09:28:11Z</dc:date>
    </item>
  </channel>
</rss>

