<?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>question Regarding decimal field values population in Community Central forum</title>
    <link>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3250341#M2919</link>
    <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I would like to know when i give decimal values in one field and there is another dependency field which populated based on first field.&lt;BR /&gt;For example, if i give 12 as value in first field then second value field should be * 1000 like 12000.&lt;BR /&gt;But when i give 1.2 it should be 1200 right but getting as 12000&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;can anyone please help me how we can achieve this .&lt;BR /&gt;&lt;BR /&gt;Thanks,&amp;nbsp;&lt;BR /&gt;Sirisha&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Apr 2025 12:49:26 GMT</pubDate>
    <dc:creator>Sirisha24</dc:creator>
    <dc:date>2025-04-29T12:49:26Z</dc:date>
    <item>
      <title>Regarding decimal field values population</title>
      <link>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3250341#M2919</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I would like to know when i give decimal values in one field and there is another dependency field which populated based on first field.&lt;BR /&gt;For example, if i give 12 as value in first field then second value field should be * 1000 like 12000.&lt;BR /&gt;But when i give 1.2 it should be 1200 right but getting as 12000&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;can anyone please help me how we can achieve this .&lt;BR /&gt;&lt;BR /&gt;Thanks,&amp;nbsp;&lt;BR /&gt;Sirisha&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 12:49:26 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3250341#M2919</guid>
      <dc:creator>Sirisha24</dc:creator>
      <dc:date>2025-04-29T12:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding decimal field values population</title>
      <link>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3250346#M2920</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/518969"&gt;@Sirisha24&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to use field type as decimal field.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAIVENKATESH_0-1745931320524.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/438599i562FFC1F03CFDD93/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SAIVENKATESH_0-1745931320524.png" alt="SAIVENKATESH_0-1745931320524.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks and Regards&lt;/P&gt;
&lt;P&gt;Sai Venkatesh&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 12:55:37 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3250346#M2920</guid>
      <dc:creator>SAI VENKATESH</dc:creator>
      <dc:date>2025-04-29T12:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding decimal field values population</title>
      <link>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3250352#M2921</link>
      <description>&lt;P&gt;Hi Venkatesh ,&amp;nbsp;&lt;BR /&gt;Thanks!!&lt;BR /&gt;Here previously used Floating point number type for that and i was not able to change the type for that field .&lt;BR /&gt;Is there any approach i can follow to achieve this ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 12:59:48 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3250352#M2921</guid>
      <dc:creator>Sirisha24</dc:creator>
      <dc:date>2025-04-29T12:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding decimal field values population</title>
      <link>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3250409#M2922</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/518969"&gt;@Sirisha24&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so that field can accept integer also and decimal also?&lt;/P&gt;
&lt;P&gt;If yes then why not make it string and then get the number from it and multiply with the 2nd value?&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 13:37:50 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3250409#M2922</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-04-29T13:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding decimal field values population</title>
      <link>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3250416#M2923</link>
      <description>&lt;P&gt;Hi Ankur,&amp;nbsp;&lt;BR /&gt;Thanks !!&amp;nbsp;&lt;BR /&gt;Could you please let me know what exactly i need to do I didn't get what you have said sorry&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 13:41:46 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3250416#M2923</guid>
      <dc:creator>Sirisha24</dc:creator>
      <dc:date>2025-04-29T13:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding decimal field values population</title>
      <link>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3250459#M2924</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/518969"&gt;@Sirisha24&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please share the script that you are using to do the calculation?&lt;/P&gt;&lt;P&gt;In Javascript, the result should always be 1200, no matter if 1.2 is a string or an actual decimal number.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RobertH_0-1745935644648.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/438628i56BEAC134C0FD02F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RobertH_0-1745935644648.png" alt="RobertH_0-1745935644648.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 14:08:33 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3250459#M2924</guid>
      <dc:creator>Robert H</dc:creator>
      <dc:date>2025-04-29T14:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding decimal field values population</title>
      <link>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3250776#M2926</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/518969"&gt;@Sirisha24&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the only point is that if we use integer type or other type ServiceNow will not allow to show the outputs in decimals . We need to use correct data type to achieve these things.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards&lt;/P&gt;
&lt;P&gt;Sai venkatesh&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 20:06:52 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3250776#M2926</guid>
      <dc:creator>SAI VENKATESH</dc:creator>
      <dc:date>2025-04-29T20:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding decimal field values population</title>
      <link>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3250938#M2927</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/518969"&gt;@Sirisha24&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what's your requirement here?&lt;/P&gt;
&lt;P&gt;As per my suggestion I informed to use string field so that user can enter either integer or decimal&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 04:46:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3250938#M2927</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-04-30T04:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding decimal field values population</title>
      <link>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3250963#M2928</link>
      <description>&lt;P&gt;Hi Robert ,&amp;nbsp;&lt;BR /&gt;We are using a system property to retrieve a value (e.g., 1000), which is then multiplied by the number of days to calculate the equivalent NFI cost. This calculation is implemented in a client script, as shown in the code snippet, which populates the u_equivalent_nfi_cost field accordingly.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sirisha24_0-1745990682690.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/438771iBC19E7248A44F23F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sirisha24_0-1745990682690.png" alt="Sirisha24_0-1745990682690.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks ,&amp;nbsp;&lt;BR /&gt;Sirisha&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 05:28:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3250963#M2928</guid>
      <dc:creator>Sirisha24</dc:creator>
      <dc:date>2025-04-30T05:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding decimal field values population</title>
      <link>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3250968#M2929</link>
      <description>&lt;P&gt;Hi Ankur ,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;As you suggested i can't change type now so i need to do that scenario in different way because its all customization things.&lt;BR /&gt;Thanks,&lt;BR /&gt;Sirisha&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 05:30:10 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3250968#M2929</guid>
      <dc:creator>Sirisha24</dc:creator>
      <dc:date>2025-04-30T05:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding decimal field values population</title>
      <link>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3250971#M2930</link>
      <description>&lt;P&gt;Hi Venkatesh ,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The actual requirement is: when a value like 10 is entered in the "Number of Days" field, the "NFI Cost" field should correctly calculate the cost based on the defined conditions (e.g., 10 × 1000 = 10000). Similarly, if the input is 2.5, the cost should be calculated as 2.5 × 1000 = 2500. However, the current behavior is incorrect—when entering 2.5, it is being treated as 25, resulting in a cost of 25000. This issue needs to be fixed so that decimal values are handled properly.&lt;BR /&gt;&lt;BR /&gt;Thanks,&amp;nbsp;&lt;BR /&gt;Sirisha&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 05:33:28 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3250971#M2930</guid>
      <dc:creator>Sirisha24</dc:creator>
      <dc:date>2025-04-30T05:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding decimal field values population</title>
      <link>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3251035#M2931</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/518969"&gt;@Sirisha24&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess you are doing the replaceAll() because some countries use the comma (,) as the decimal separator? But you are not replacing it with a dot (.) which is the expected separator in JavaScript.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please do this instead:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var nDays = g_form.getDecimalValue('FIELD_NAME');&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And ideally you should recreate that field as a Decimal type field if it is currently a String field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 06:46:43 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3251035#M2931</guid>
      <dc:creator>Robert H</dc:creator>
      <dc:date>2025-04-30T06:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding decimal field values population</title>
      <link>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3251044#M2933</link>
      <description>&lt;P&gt;Hi Robert ,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If i gave this condition also it is going as 56 instead of 5.6.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 06:57:45 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3251044#M2933</guid>
      <dc:creator>Sirisha24</dc:creator>
      <dc:date>2025-04-30T06:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding decimal field values population</title>
      <link>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3251047#M2934</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/518969"&gt;@Sirisha24&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the user actually entering in the field? Is it 5,6 (comma) or 5.6 (dot)?&lt;/P&gt;&lt;P&gt;And what is value of the "glide.system.locale" System Property, and the "Country code" of that user in the sys_user table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 07:05:36 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3251047#M2934</guid>
      <dc:creator>Robert H</dc:creator>
      <dc:date>2025-04-30T07:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding decimal field values population</title>
      <link>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3251049#M2935</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/518969"&gt;@Sirisha24&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please share your script which you are using&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 07:02:37 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3251049#M2935</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-04-30T07:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding decimal field values population</title>
      <link>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3251083#M2936</link>
      <description>&lt;P&gt;Hi Robert ,&amp;nbsp;&lt;BR /&gt;They are actually using both.&lt;BR /&gt;The value of 1000 in the system properties is correct.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 07:57:13 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3251083#M2936</guid>
      <dc:creator>Sirisha24</dc:creator>
      <dc:date>2025-04-30T07:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding decimal field values population</title>
      <link>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3251085#M2937</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sirisha24_0-1745999916287.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/438793i429B59A35D97F82D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sirisha24_0-1745999916287.png" alt="Sirisha24_0-1745999916287.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the client script where 1000 value is getting from system property .&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 07:59:19 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3251085#M2937</guid>
      <dc:creator>Sirisha24</dc:creator>
      <dc:date>2025-04-30T07:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding decimal field values population</title>
      <link>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3251103#M2938</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/518969"&gt;@Sirisha24&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then advise your users that they have to enter the numbers in the correct format, with dot (.) as the decimal separator. They cannot just choose whatever format suits them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since you are not using a Decimal type field for the input the system cannot help you with enforcing the correct format, and you would have to write a very complex script for &lt;STRONG&gt;guessing&lt;/STRONG&gt; the actual number that was entered.&lt;/P&gt;&lt;P&gt;Take the number 1234.56 as an example.&lt;/P&gt;&lt;P&gt;In the US it would be written as "1,234.56" but in other countries that would mean "1.23456".&lt;/P&gt;&lt;P&gt;Other countries write it as "1234,56", but in the US it would mean "123456".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 08:11:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3251103#M2938</guid>
      <dc:creator>Robert H</dc:creator>
      <dc:date>2025-04-30T08:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding decimal field values population</title>
      <link>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3251111#M2939</link>
      <description>&lt;P&gt;Hi Robert,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In this case, decimals are not working either—for example, 2.8 is not accepted, even though you mentioned decimals should be supported.&lt;BR /&gt;From a user perspective, the inputs are coming from many different locations, so we need to support both comma and dot as decimal separators—for example, users might enter 2.9 or 2,9.&lt;BR /&gt;Is it possible to handle both formats?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 08:18:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/regarding-decimal-field-values-population/m-p/3251111#M2939</guid>
      <dc:creator>Sirisha24</dc:creator>
      <dc:date>2025-04-30T08:18:40Z</dc:date>
    </item>
  </channel>
</rss>

