This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Conversion question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Conversion question " Watch "Conversion question " New topic
Author

Conversion question

anis mistry
Ranch Hand

Joined: Nov 11, 2000
Posts: 52
Explain this conversion
double fah=62.5
double cel =f2c(fah)
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
apparently f2c is a method that takes a double representing fahrenheits and returning the equivalent value in celsius as a double. There is no conversion basically.
HIH
------------------
Valentin Crettaz
Sun Certified Programmer for Java 2 Platform


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
celsius = ( fahrenheit - 32 ) * 5/9
100 C = 212 F


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Conversion question
 
Similar Threads
code problem.
to check double values
integer to string conversion
conversion from long to float
Regarding widening conversion and narrowing conversion