I'm writing a program in C (NOT C ++) to convert money and I need to round U.S. currency to the nearest cent. How do I round money to the nearest cent?
Ex: $0.501 rounds to $0.50,
$0.505 rounds to $0.51,
$1.006 rounds to $1.01,
etc.
2007-02-04
07:43:39
·
2 answers
·
asked by
anonms420
1
in
Computers & Internet
➔ Programming & Design
I'm a begginer at programming, so please give me simple solutions that are easy to understand, as I do not know much about C programming.
2007-02-04
08:10:51 ·
update #1