Round off problem

jigarvyas_1jigarvyas_1 Member Posts: 8
Dear All,
I am facing some problem in round off function. Suppose if the number is 34.56789, precision is 1.23 and direction is '=', then what should be the round off value for this number. Kindly explain the answer how it comes.

Thanks and regards,
Jigar Vyas

Comments

  • DaveTDaveT Member Posts: 1,039
    Hi Jigar,

    You want to round 34.56789 to the nearest multiple of 1.23 so

    34.56789 / 1.23 = 28.10397561
    rounded to the nearest = 28

    28 * 1.23 = 34.44

    Hope this clears it up.
    Dave Treanor

    Dynamics Nav Add-ons
    http://www.simplydynamics.ie/Addons.html
Sign In or Register to comment.