How can I do to set the floating-point type to have two decimal places?

CAO
Tera Contributor

I want to set the floating-point type to have two decimal places. How can I do that?

6 REPLIES 6

Gunjan Kiratkar
Kilo Patron
Kilo Patron

Hi @CAO ,

Below thread has similar issue. Please check the accepted solution.

Display float type with two digits after decimal 


Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hello @CAO 

Greetings!

Is this on Catalog form? Or in backend form?

refer the following link:

https://www.servicenow.com/community/developer-forum/how-round-the-value-after-two-decimal-point/m-p...

 

Help others to find a correct solution by marking the appropriate response as correct answer and helpful!!

 

Kind Regards, 

Ravi Chandra

CAO
Tera Contributor

@SimonL898794821 @Ravi Chandra_K @Gunjan Kiratkar 
Thank you very much
I have one more question. Is it possible to display decimal numbers up to the second decimal place even when entering integers or numbers up to the first decimal place? I would like to achieve this using attribute settings or a no-code approach.