I am new to Java, please forgive me if I sound stupid.
1) Is there any way to display the double value wihtout a decimal point if it doesn't have anything except 0's after the decimal? For example, 3.1 would display as it is, but 3.0 should display as 3 (and not 3.0).
2) How can we specify the number of decimal digits we want to display for a particular double type variable?
3) Is there any way we can force the computer to display double type variables (having very small value) as floating point notation instead of scientific notation?
Have already looked there. Didn't find anything specific. Can you please give me an example of a method from that class which will solve one of my questions?