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 imperial gallons to liters, and vice versa

' Convert from imperial gallons to liters, and vice versa

Function UKGallonsToLiters(ByVal gallons As Double) As Double
    Return gallons * 4.546
End Function

Function LitersToUKGallons(ByVal liters As Double) As Double
    Return liters / 4.546
End Function
Marco Bellinaso
 
Comment and Contribute

 

 

 

 

 


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

 

 

Sitemap