2 Replies Latest reply on May 26, 2014 8:27 AM by philmodjunk

    Auto-Enter max digits

    TobyGross

      Title

      Auto-Enter max digits

      Post

           Calculated value

           My calculated value =8.99132464564664 how would i make it so it only has a maximum of 4 digits?

            

           Thanks

        • 1. Re: Auto-Enter max digits
          SteveMartino

               In layout mode, click on field.  Open inspector, data tab, scroll down to bottom (data formatting).  There's a format drop down, choose decimal.  Below that , check the box 'Fixed number of decimals: ' , type in 4.

          • 2. Re: Auto-Enter max digits
            philmodjunk

                 In some cases, you need a calculation to produce a rounded value to a specific number of digits. In those cases, you can use the Round function. But whether you use the round function or data formatting to control the number of decimal places is a question to answer carefully. If this value is used by other calculation fields or script steps to calculate yet another value, you can get a different result between using the round function to round the actual value and the unrounded value that is set to display as rounded. And different situations can make either the rounded or the unrounded value the correct value to use in such a calculation.