|
-
July 29th, 2003, 10:38 AM
#1
Senior Member
Java Help, Plase...
I am having the following problem in Java simple program .
the question is:
write a console program to declare and initialize a double variable with some value such as 1234.5678, then retrieve the integral part of the value and store it in the variable of type long, and the first four digits of the fractionL part and store in the integer type short.
Display the value of the double variable by outputing two values stored as integers.
----------
I have gone through the class Math, and seen all the methods, abut i think there is some other way of doing it. Please help me out.
Thanks
regards
harbir
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|