0
Type of data in java
Hi How can we have long double data in java? for example: 0.0000002
6 Answers
+ 5
Zahra Yes you can use either double or float datatypes
+ 6
Your question doesn't seems to be clear .
If your are asking about datatype the it's the type of data to be stored in a variable.
â˘Primitive Data types
â˘Non primitive datatype
For long
long a = 500000L;
double b = 43.7;
+ 3
Zahra
long num = 1000;
double amount = 100.50;
+ 3
Zahra Make variable c of double data type.
+ 1
for example:
c=a/b=0.0000002
When we want to print c, 0 is printed
What can I do to print exact amount of c?
0
Double and float