Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.text.DecimalFormat;
- public class test {
- public static void main(String[] args) {
- DecimalFormat df = new DecimalFormat("#.#####"); // -> шаблон
- System.out.println(df.format(2.5040250343)); // -> форматиране на дробно число
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement