how do i round number in java?
for example: 12.45 to 12.5
should i use float or double as variable?
how do i round number in java?
for example: 12.45 to 12.5
should i use float or double as variable?
For further actions, you may consider blocking this person and/or reporting abuse
Donesrom -
Oliver Bennet -
Shivam Chamoli -
Prahlad Yeri -
Top comments (1)
Hi Ahmad, 5 seconds with a search engine found this useful article:
baeldung.com/java-round-decimal-nu...
Please do a little research before posting such questions on dev.to 😄