Rounding off Double decimal values

One of my methods returns a deciPlaces value (which is the number of decimal places they want to round to). So if they choose 6 a number like 5.6968586958 will round to 5.696859. However I have no idea how to do this. Anyone have any idea?

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion