>I need to set the number of decimals to 9, but it's not working, it always show 4 decimals after a division.
>
>SET DECIMALS TO 9
>MESSAGEBOX(STR(SET("Decimals"))) && it shows 9
>? lnCIF/lnFOB && This shows only 4 decimals, are being rounded
>
>What do i have to do to get 9 decimals.
>
>
>This code is in the method of a form.
>
>The weird thing is that if i add this code to the click event of the form, it works fine.
>
>Can someone helpme please.
Is one of your variables/fields a Money (currency) type? They're always 4 decimals. You can use MTON() to convert to a regular numeric.