Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Conversion question

 
anis mistry
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Explain this conversion
double fah=62.5
double cel =f2c(fah)
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Marilyn de Queiroz
Sheriff
Posts: 9059
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
celsius = ( fahrenheit - 32 ) * 5/9
100 C = 212 F

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic