Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

user macro decimal number

Cocorisu I'm New Here Nov 30, 2021

Hey Everyone,

I want to edit a user macro in confluence server. The result is a number which is at the moment shown as e.g.: 0.01683053094893694
Is there anyone who can tell me, how i get this number shortened to 0.01? (2 decimals )

1 answer

1 accepted

1 vote
Answer accepted
Dominic Lagger Community Leader Nov 30, 2021

Hi @Cocorisu 

Do you need to calculate with this value?

Unfortunately, the mathtool of velocity isn't integrated in confluence server. So here is a hack solution with strings.

#set ($number = 0.0012346815154)

Regards, Dominic

Cocorisu I'm New Here Nov 30, 2021

Big Thanks to your answer!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence Cloud

🏠 Say hello to the new Confluence Home!

Hi Atlassian Community, My name is DJ Chung, and I’m a Product Manager on the Confluence Cloud team. Today, I’m excited to share a new and improved version of Home. The new Home helps you ...

41,073 views 28 130
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you