Login | Register   
LinkedIn
Google+
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: VB7
Expertise: beginner
Dec 8, 2003

Convert from miles to kilometers, and vice versa

' Convert from miles to kilometers, and vice versa

Function MilesToKilometers(ByVal miles As Double) As Double
    Return miles * 1.6093
End Function

Function KilometersToMiles(ByVal kilometers As Double) As Double
    Return kilometers / 1.6093
End Function
Marco Bellinaso
 
Comment and Contribute

 

 

 

 

 


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

 

 

Sitemap