How do I round off

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cmrhema
    Contributor
    • Jan 2007
    • 375

    How do I round off

    Hi,
    I want to round of the salary amount to the nearest 0.05. eg. if my salary is 1000.23, it should be rounded to 1000.25 and if the salary is 1000.26 it should be rounded off to 1000.30.
    The Math.round function is not helpful in the above sceneario.
    Suggestions pls

    Regards
    cmrhema
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    if pennies greater than zero and less than 5 then pennies equal 5
    if pennies greater than 5 then coins = coins plus (10-pennies)

    Comment

    Working...