Comments on: Controlling decimal field places https://servicenowguru.com/system-definition/controlling-decimal-field-places/ ServiceNow Consulting Scripting Administration Development Tue, 28 May 2024 19:41:06 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Martyna https://servicenowguru.com/system-definition/controlling-decimal-field-places/#comment-9403 Thu, 26 Jul 2018 12:49:32 +0000 https://servicenowguru.wpengine.com/?p=4641#comment-9403 In reply to Tanay Bedia.

Thank you Tanay!
There seems to be no logic in it but it’s exactly what worked for me – decimals stayed at 2 until I gradually increased max lenght :).

]]>
By: Tanay Bedia https://servicenowguru.com/system-definition/controlling-decimal-field-places/#comment-9402 Mon, 18 Jun 2018 10:31:01 +0000 https://servicenowguru.wpengine.com/?p=4641#comment-9402 Please increase Max length gradually from 18 to 21 and then to 24 keeping the scale fixed at 6.

]]>
By: Tanay Bedia https://servicenowguru.com/system-definition/controlling-decimal-field-places/#comment-9401 Mon, 18 Jun 2018 09:47:23 +0000 https://servicenowguru.wpengine.com/?p=4641#comment-9401 Looks like the default value of max length for Decimal type fields is 18 in Helsinki version.

Use
Max length: “24” – without quotes (18 + 6)
Attributes: “scale=6” – without quotes

Works for me, tried on multiple fields.

]]>
By: Max Albanese https://servicenowguru.com/system-definition/controlling-decimal-field-places/#comment-9399 Thu, 28 Sep 2017 17:57:07 +0000 https://servicenowguru.wpengine.com/?p=4641#comment-9399 I tried to do this in Helsinki but for some reason it does not work. I have put Max Length as 15 and scale=4 attribute but for some reason it only goes to 2 decimal place. Any suggestions?

]]>
By: Jayee Chakrabarti https://servicenowguru.com/system-definition/controlling-decimal-field-places/#comment-9398 Mon, 20 Mar 2017 13:24:27 +0000 https://servicenowguru.wpengine.com/?p=4641#comment-9398 Hi Mark,

Thanks for responding. There is a type called ‘Floating Point Number’. I have not used this data type before. I had created a new field with this data type, but I do not understand how to restrict the decimal places in it. Can you tell me how to restrict the points after decimal in these type of fields?

Regards,
Jayee

]]>
By: Mark Stanger https://servicenowguru.com/system-definition/controlling-decimal-field-places/#comment-9397 Fri, 17 Mar 2017 15:05:08 +0000 https://servicenowguru.wpengine.com/?p=4641#comment-9397 In reply to Jayee Chakrabarti.

I think you’re doing it right, but ServiceNow has been changing how this works so much that it’s hard to know what should or shouldn’t work. You could try a floating point decimal field and see if that works better. Otherwise you’ll just need to talk to ServiceNow support.

]]>
By: Jayee Chakrabarti https://servicenowguru.com/system-definition/controlling-decimal-field-places/#comment-9396 Fri, 17 Mar 2017 14:25:08 +0000 https://servicenowguru.wpengine.com/?p=4641#comment-9396 Hi Mark,

I am facing an issue with decimal places. I have created 3 field in decimal. When I created them first of all it was taking more than 2 points after decimal. When I wanted to adjust it to 3 decimal places, I had given a Max Length of 18 and a scale of 3 in Attribute place, but I see it is taking upto 12 decimal places.

Previously also I had created decimal field, upto 5 decimal place. At that point of time I had given a Max Length of 20 and a scale of 5. It then worked perfectly.

Can you tell me the reason why is it not working, or am I doing something wrong?

Regards,
Jayee

]]>
By: Mark Stanger https://servicenowguru.com/system-definition/controlling-decimal-field-places/#comment-9395 Fri, 03 Mar 2017 19:20:38 +0000 https://servicenowguru.wpengine.com/?p=4641#comment-9395 In reply to Bhushan Salsekar.

You’ll probably need to discuss with ServiceNow if none of the solutions here work. From what I understand, they’ve designed it specifically this way. Not much you can do about it as far as I’m aware.

]]>
By: Bhushan Salsekar https://servicenowguru.com/system-definition/controlling-decimal-field-places/#comment-9394 Fri, 03 Mar 2017 12:17:41 +0000 https://servicenowguru.wpengine.com/?p=4641#comment-9394 We have decimal field and when we got the value with 2 decimals but for round of values like 25 or 30 , we need to make it as 25.00 and 30.00. This is not happening.
can any one suggest please.

Thanks,
Bhushan

]]>
By: Bhushan Salsekar https://servicenowguru.com/system-definition/controlling-decimal-field-places/#comment-9393 Fri, 03 Mar 2017 12:08:43 +0000 https://servicenowguru.wpengine.com/?p=4641#comment-9393 I have tried this but not able to resolve my issue. Can you please suggest.
Thanks

]]>