Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: .NET
Expertise: Intermediate
Jul 17, 2007

Converting from Centigrade to Fahrenheit and Vice Versa

Use the following code to convert from Centigrade to Fahrenheit and vice versa:

Function CentToFaren(ByVal cent As Double) As Double
        Return cent / 0.55555555556 + 32
End Function

Function FarenToCent(ByVal faren As Double) As Double
        Return (faren - 32) * 0.55555555556
End Function
Jijesh Nair
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap