How to round up / round down / round nearest the values? Can anyone help to start somewhere ?

If the amount is = 3333.35 thenExpected Out Put-------------------------Round Exact:---------------------Round to Exact = $ 3333.35Round to $1 = $ 3333Round to $10 = $ 3330Round to $100 = $ 3300Round to $1000 = $ 3000Round Up-----------------------Round to Exact = $ 3333.35Round to $1 = $ 3334Round to $10 = $ 3340Round to $100 = $ 3400Round to $1000 = $ 4000Round Down----------------------------------Round to Exact = $ 3333.35Round to $1 = $ 3333Round to $10 = $ 3330Round to $100 = $ 3300Round to $1000 = $ 3000Round nearest---------------------------Round to Exact = $ 3333.35Round to $1 = $ 3333Round to $10 = $ 3330Round to $100 = $ 3300Round to $1000 = $ 3000

Also notice the pattern
document.write ("\nRound to $10 = \t\t\$" + Math.round(amount/10)*10 + "\n");
since we are rounding to the nearest 10.00
we need to divide by 10.00
round
then multiply by 10

The same pattern exist for all lines:
document.write ("\nRound to Exact = \t\$" + Math.round(amount*100)/100 + "\n");
since we are rounding to the nearest .01
we need to divide by 0.01 (or multiply by 100 in algebraical terms)
round
then multiply by 0.01 (or divide by 100 in algebraical terms)

Therefore, for complete uniform pattern sake you could have written this instead:
document.write ("\nRound to Exact = \t\$" + Math.round(amount/0.01)*0.01 + "\n");
since it is the same as
document.write ("\nRound to Exact = \t\$" + Math.round(amount*100)/100 + "\n");

Thus,
the formula is:
Math.Round(amount / precision) * precision
So if you wanted 123456789 to the nearest 100,000.

amount=123456789;precision=100000;document.write (Math.round(amount / precision)*precision);//output is 123500000

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption. Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logoâ€¦

The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creatâ€¦

The viewer will learn the basics of jQuery, including how to invoke it on a web page.
Reference your jQuery libraries: (CODE)
Include your new external js/jQuery file: (CODE)
Write your first lines of code to setup your site for jQuery.: (CODE)