N
N
NikitkOS2016-03-18 22:03:15
Java
NikitkOS, 2016-03-18 22:03:15

Can you help me understand the Math.rint method in java?

Why are fractional numbers with an odd integer part and 5 after the decimal point (for example, 5.5) rounded up, and numbers with an even integer part and 5 after the decimal point (for example, 6.5) rounded down?
c6fbf80512aa457d86ce7d3a9de1090d.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Moseychuk, 2016-03-19
@NikitkOS

Google "bank rounding"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question