How to use ROUND function in Microsoft Dynamics Navision.

Round function is gives round value of the given decimal value as per your requirement, here you can specify whatever you want either larger round value or smaller round value for given value. here Round function takes 3 parameters

1st : Actual decimal value
2nd : number of decimal point you want.
3rd: Symbol for (=,>, <)

Example:

Price:=1234.56789;

RoundedPriceMiddel:=ROUND(Price,0.01,'=');
RoundedPriceLess:=ROUND(Price,0.01,'<');
RoundedPriceMore:=ROUND(Price,0.01,'>');

MESSAGE('Original Price:%1 \ Rounded Price Less :%2 \ Rounded Price More:%3 \ Rounded Price Middele:%4',Price,RoundedPriceLess,RoundedPriceMore,RoundedPriceMiddel);




OUTPUT:

Comments

Popular posts from this blog

How to get column value from the selected row in data grid in wpf c#.net

How to make and use web service in Microsoft Dynamics Navision.

How to use Format function in Microsoft Dynamics Navision.