Format decimal Floating Point Number

Gaetano De Mitr
ServiceNow Employee
ServiceNow Employee

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?

5 REPLIES 5

Tim Deniston
Mega Sage
Mega Sage

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. 

This not work for me

Jose Manuel
Tera Contributor

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

SaschaWildgrube
ServiceNow Employee
ServiceNow Employee

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:

https://www.wildgrube.com/servicenow-devtools