R
R
RichardXXX2019-02-17 12:51:59
Java
RichardXXX, 2019-02-17 12:51:59

How to transfer the result of a double calculation to an understandable format?

In general, the essence of the question is as follows
============================
input data Double
numbers
20 000 000 total amount
3333333.33 VAT from the amount
=== =========================
Processing
20 000 000 - 3333333.33 amount without VAT
================ ============
result
1.666666667E7
As in the calculator,
my expectations User-friendly format
16 666 666.7
Prompt class for mathematical calculations in java

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Podbolotov, 2019-02-17
@Cynep_3APA3A

Google formatted number output.

R
RichardXXX, 2019-02-17
@RihardXXX

Big Decimal helped

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question