You can round decimal values converting to text using the ‘FORMAT‘ function in C/AL on Dynamics Navision. The following example will show, how to convert decimal into text in rounding two decimal places with thousand separators.
FORMAT(DecimalAmt,0,'<Precision,2><sign><Integer Thousand><Decimals,3>');
Code language: HTML, XML (xml)
Visit the previous tutorial about, how to set Windows user permission to Dynamics NAV using PowerShell.