Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Align the decimal point in report

RyoyaFukuda
Tera Contributor

Hi, all.

I would like to have the report display from the second decimal place.
For example, I would like to display the following.

13.5 28.38

13.50 28.38

Now it looks like the image, how can I align the decimal point?

RyoyaFukuda_0-1707797778366.png

 

The table in the report is the project task table.

RyoyaFukuda_1-1707798232764.png

 

6 REPLIES 6

Maddysunil
Kilo Sage

@RyoyaFukuda 

In your script, try using 

parseFloat(number).toFixed(2);

 

Please mark my answer correct/helpful.

Thanks

@Maddysunil 
Can I use scripts in my reports?
If so, how?

@RyoyaFukuda 

Can you share your existing code where you calculating percentage complete

@Maddysunil 
The percentage complete comes standard with the project task table.

Therefore, no scripting is required.