Skip to content

Instantly share code, notes, and snippets.

@philbegg
Last active October 16, 2024 23:35
Show Gist options
  • Save philbegg/a479d3e1eaaf217045ff2987a6153c35 to your computer and use it in GitHub Desktop.
Save philbegg/a479d3e1eaaf217045ff2987a6153c35 to your computer and use it in GitHub Desktop.
SI Unit Conversions

Unit Conversion System Overview

Below is a breakdown of units, their SI equivalents, and how to convert to and from the SI units.

1. Pressure Units

  • SI Unit: Pascal (Pa)
  • Conversions:
    • Bar ➔ Pascal: value * 100,000
    • Pascal ➔ Bar: value / 100,000
    • PSI ➔ Pascal: value * 6894.76
    • Pascal ➔ PSI: value / 6894.76

2. Temperature Units

  • SI Unit: Kelvin (K)
  • Conversions:
    • Celsius ➔ Kelvin: value + 273.15
    • Kelvin ➔ Celsius: value - 273.15
    • Fahrenheit ➔ Kelvin: ((value - 32) * 5/9) + 273.15
    • Kelvin ➔ Fahrenheit: ((value - 273.15) * 9/5) + 32

3. Length Units

  • SI Unit: Meter (m)
  • Conversions:
    • Kilometer ➔ Meter: value * 1000
    • Meter ➔ Kilometer: value / 1000
    • Mile ➔ Meter: value * 1609.34
    • Meter ➔ Mile: value / 1609.34
    • Nautical Mile ➔ Meter: value * 1852
    • Meter ➔ Nautical Mile: value / 1852

4. Volume Units

  • SI Unit: Cubic Meter (m³)
  • Conversions:
    • Liter ➔ Cubic Meter: value * 0.001
    • Cubic Meter ➔ Liter: value / 0.001
    • Gallon ➔ Liter: value * 3.78541
    • Liter ➔ Gallon: value / 3.78541

5. Time Units

  • SI Unit: Second (s)
  • Conversions:
    • Minute ➔ Second: value * 60
    • Second ➔ Minute: value / 60
    • Hour ➔ Second: value * 3600
    • Second ➔ Hour: value / 3600
    • Day ➔ Second: value * 86400
    • Second ➔ Day: value / 86400

6. Frequency Units

  • SI Unit: Hertz (Hz)
  • Conversions:
    • RPM ➔ Hertz: value / 60
    • Hertz ➔ RPM: value * 60

7. Velocity Units

  • SI Unit: Meter per Second (m/s)
  • Conversions:
    • Kilometer per Hour ➔ Meter per Second: value * (1000 / 3600)
    • Meter per Second ➔ Kilometer per Hour: value / (1000 / 3600)
    • Mile per Hour ➔ Meter per Second: value * 0.44704
    • Meter per Second ➔ Mile per Hour: value / 0.44704
    • Knot ➔ Meter per Second: value * 0.514444
    • Meter per Second ➔ Knot: value / 0.514444

8. Voltage Units

  • SI Unit: Volt (V)
  • Conversions: No conversion needed as it is already in SI.

9. Percentage Units

  • SI Unit: Percent (%)
  • Conversions: No conversion needed as it is already in SI.

10. Flow Rate Units

  • SI Unit: Cubic Meter per Second (m³/s)
  • Conversions:
    • Liter per Second ➔ Cubic Meter per Second: value * 0.001
    • Cubic Meter per Second ➔ Liter per Second: value / 0.001
    • Liter per Hour ➔ Cubic Meter per Second: (value * 0.001) / 3600
    • Cubic Meter per Second ➔ Liter per Hour: (value * 3600) / 0.001
    • Gallon per Hour ➔ Cubic Meter per Second: (value * 3.78541) / 3600
    • Cubic Meter per Second ➔ Gallon per Hour: (value * 3600) / 3.78541

11. Position Units

  • SI Unit: Latitude/Longitude (lat/lon)
  • Conversions: No conversion needed as it is already in SI.

12. Angle Units

  • SI Unit: Radian (rad)
  • Conversions:
    • Degree ➔ Radian: (value * Math.PI) / 180
    • Radian ➔ Degree: (value * 180) / Math.PI

13. Rate of Turn Units

  • SI Unit: Radian per Second (rad/s)
  • Conversions:
    • Degree per Second ➔ Radian per Second: (value * Math.PI) / 180
    • Radian per Second ➔ Degree per Second: (value * 180) / Math.PI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment