Bir kod parçacığı ile küsüratlı sayılar ile işlem yapyorum. Bunun sonucunda ise 254.66464 diye küsratlı sayıyı yuvarlayıp 255 veya 254.67 gibi yuvalanması hangi method vs. ile yapılabilir.
comments
1 references
// Comments are closed.
aşağıdaki linlerde farklı yöntemleri bulunmakta.
https://stackoverflow.com/questions/9474121/i-want-to-get-year-month-day-etc-from-java-date-to-compare-with-gregorian-cal
https://stackoverflow.com/questions/4796746/double-value-to-round-up-in-java
https://stackoverflow.com/questions/11701399/round-up-to-2-decimal-places-in-java
https://stackoverflow.com/questions/5195837/format-float-to-n-decimal-places
https://stackoverflow.com/questions/15643280/rounding-bigdecimal-to-always-have-two-decimal-places