dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: Round up to nearest

  1. #1
    Join Date
    Sep 2017
    Posts
    7

    Round up to nearest

    Hi guys

    I hope you can help me out.

    Basically, I am just using the following code in my page:

    <%=((4.5 / 100 / 12) * (int)(SearchResult.Price)) / (1 - Math.Pow((1 + (4.5 / 100 / 12)) , (-3 * 12)))%>

    which give me results displayed on my page such as:

    17.6994200646338

    How would I round this up to the nearest whole number? So, in this example it would be:

    18

    What do I need to add to my code to do this? Any help would be fully appreciated

    Best regards

    Rod from the UK

  2. #2
    Join Date
    Jan 2017
    Location
    Coimbatore, India
    Posts
    106
    in which language would you need the code, javascript, php?

  3. #3
    Join Date
    Sep 2017
    Posts
    7
    Hi Evoluer

    Thanks for your reply, much appreciated. I finally managed to solve it.

    Best regards

    Rod from the UK

  4. #4
    Join Date
    Sep 2017
    Posts
    2
    Thank you
    **Links removed by Site Staff so it doesn't look like you're spamming us. Please don't post them again.**

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center