ReadRounding function

companycompany Member Posts: 89
Hi all,

What is the use of ReadRounding function in ApplicationManagement Codeunit? From where it will be called?

I have looked into Toolkit I did not find any source to call that function.

Regards.

Comments

  • kitikkitik Member Posts: 230
    I've checked on a NAV 2009 SP1 and the function ReadRounding is not used.

    Whenever the "Amount Rounding Precision" is needed, it's read directly from the G/L Setup table.

    Salut!
    Laura Nicolàs
    Author of the book Implementing Dynamics NAV 2013
    Cursos Dynamics NAV (spanish) : http://clipdynamics.com/ - A new lesson released every day.
  • vaprogvaprog Member Posts: 1,139
    Fom Developer Help:
    ROUND Function (NUMBERS)
    ...
    Precision
    Type: Decimal

    This optional parameter determines the precision used when rounding. If you do not specify a Precision parameter, then the following steps are used to specify the precision:
    1. The function ReadRounding in Codeunit 1, Application Management, is called. ReadRounding returns a decimal value that is the precision. By default, the ReadRounding function returns the Amount Rounding Precision field from the GLSetup table.
    2. If you have customized Codeunit 1 and it does not implement the ReadRounding function, then the No. of digits after decimal in the Regional and Language Options on the current computer is used to specify the precision. If the No. of digits after decimal does not specify a valid value, then the precision is specified as 2 digits after the decimal.
Sign In or Register to comment.