Jump to content
Server Maintenance This Week. ×

script calculation


This topic is 5799 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I have a script to send an email when a certain function is performed. My problem is that some calculated number fields give me a number with too many decimals. How can I restrict it to give me the number with only 2 decimals or none at all ?

I have formatted the number to 0 decimals but it is not working on the email body.

thanks

Link to comment
Share on other sites

In the formula that calculates the e-mail body, use Round ( CalculationField ; 2 ) instead of CalculationField.

If you mean you want a fixed number of decimals, see:

http://www.fmforums.com/forum/showpost.php?post/257391/

Link to comment
Share on other sites

This topic is 5799 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.