Stevens Miller wrote:Hmmm... if "grade" is a double, your code ought to work. If it is a float, you're going to find out something worth knowing about how a lot of computer languages (including Java) represent decimal values internally.
Junilu Lacar wrote:If you must have precision, use BigDecimal
Junilu Lacar wrote:"The Princess Bride" strikes again: "You keep using that word. I do not think it means what you think it means."