Java 5: Casting int to double, and formatting a double to 2 decimal places

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Could you help me out? I need to cut my number without rounding it. And your method rounds the number. For example the number 21.4567 should be shown an 21.45 and not as 21.46, which method could I use? Or what should I do generally?

minus