Options

Rounding Number

Stan09Stan09 Member Posts: 63
Hi,
How can I set so that, by default all decimal numbers round to the nearest unit in navision.(Like a whole number)
Thanks

Comments

  • Options
    kinekine Member Posts: 12,562
    Globally? You cannot, the number is rounded only if code calls function ROUND or there are set proeprties on the fields like DecimalPlaces. And these have own parameters.

    Question is: why you need that?
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    Stan09Stan09 Member Posts: 63
    Because I want the Amount(LCY) without the last two decimal zero.
  • Options
    garakgarak Member Posts: 3,263
    take a look to the Currency Table and to the General Ledger Setup field ""Amount Decimal Places"".

    If you are a developer, then take also a look to the property "AutoFormatExpr" and "AutoFormatType" of the field Amount.
    Also take a look into CU 1 function AutoFormatTranslate().

    regards
    Do you make it right, it works too!
  • Options
    Stan09Stan09 Member Posts: 63
    It's OK. I set the Amount Decimal Place field of General ledger setup to 0:0. And I restart.
    Thank you for your help.
  • Options
    kinekine Member Posts: 12,562
    There is big difference between "round by default all decimal numbers" and "I want the Amount(LCY) without the last two decimal..." ;-) first cannot be done, second should be done easily...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.