Ask a questionAsk a question
 

Answerround up to 50 or 100 in C#

  • Wednesday, November 04, 2009 1:13 PMJassim Rahma Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I want to know how can I allow the user to select if he want to round up to 50 or 100 or 150 or 150, etc..

    For example...
    • if the total amount was 0.030 and user decided to round up to 50 then it should be 0.050
    • if the total amount was 0.030 and user decided to round up to 100 then it should be 0.100
    • if the total amount was 0.030 and user decided to round up to 150 then it should be 0.150
    • if the total amount was 0.030 and user decided to round up to 200 then it should be 0.200




    Jassim Rahma

Answers

All Replies