I need to round a float to the nearest 5. For example 3.76 round to 5.00 and 166.12 round to 165.00. I know how to round but only to the decimal place not to the nearest five.
I need to round a float to the nearest 5. For example 3.76 round to 5.00 and 166.12 round to 165.00. I know how to round but only to the decimal place not to the nearest five.
Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.