Skip to content

546pvp/temp_util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

temp_util

Easily swap between temperature units (Fahrenheit / Celsius)

Usage:

import temp_util	//Import the package


// To convert from fahrenheit to celsius, we can use this function:
// temp_util.to_celsius(fahrenheit f64)
// Example: 
temp_util.to_celsius(81)  // --> returns 27.222 as f64

// To convert from celsius to fahrenheit, we can use this function:
// temp_util.to_fahrenheit(celsius f64)
// Example:
temp_util.to_fahrenheit(23)  // --> returns 73.4 as f64

All outputs of the functions above, are rounded to 3 digits.

About

Easily swap between temperature units (Fahrenheit / Celsius) in V

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages