Format decimal Floating Point Number
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2019 08:53 AM
Hello,
I have a floating point number, with attributes (scale=2).
For example:
33.456,72 --> works good
33.456,70 --> I see as value: 33.456,7 --> not is correct
200,00 --> I see as value: 200 without decimal part 😞
How can resolve it?
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2019 09:53 AM
A little old, but this appears to be the answer: https://community.servicenow.com/community?id=community_question&sys_id=c80c4725db9cdbc01dcaf3231f96...
TL;DR: Not possible, but maybe a hacky workaround.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2020 01:37 PM
This not work for me
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2021 10:08 AM
How did you achieve to show that format: 33.456,72?
In my case, I see 33,456.72
What is your configuration? user/locale

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2022 08:30 AM
If the intend is to format the value for display only in a form or list (without actually changing the value) the following approach might help:
The DevTools scoped app contains a solution to format float fields in forms and lists in the classic UI.
Check it out here: