How do you round up or down a double(not an int) to the nearest dollar? Ex. $23.45 = $23 or $25.54 = $26...etc
How do you round up or down a double(not an int) to the nearest dollar? Ex. $23.45 = $23 or $25.54 = $26...etc
Easy. Just write a Round() function.
You know how to round numbers in your head don't you? Just write that out in code with if statements...
"I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008
"the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010