Breaking News
Loading...
Sunday 17 July 2016

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:

0 comments:

Post a Comment

Thanks for comment

 
Toggle Footer