Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
1.5 kB
1
Indexable
Never
{
  "length": {
    "english": {
      "unit": "inches",
      "value": 1
    },
    "si": {
      "unit": "meters",
      "value": 0.0254,
      "formula": "value * 0.0254" // Conversion factor: 1 inch = 0.0254 meters
    }
  },
  "weight": {
    "english": {
      "unit": "pounds",
      "value": 1
    },
    "si": {
      "unit": "kilograms",
      "value": 0.453592,
      "formula": "value * 0.453592" // Conversion factor: 1 pound = 0.453592 kilograms
    }
  },
  "temperature": {
    "fahrenheit": {
      "unit": "Fahrenheit",
      "value": 1
    },
    "celsius": {
      "unit": "Celsius",
      "value": -17.2222,
      "formula": "(value - 32) * 5/9" // Conversion formula: (F - 32) * 5/9
    }
  },
  "volume": {
    "us_gallons": {
      "unit": "US Gallons",
      "value": 1
    },
    "liters": {
      "unit": "Liters",
      "value": 3.78541,
      "formula": "value * 3.78541" // Conversion factor: 1 US gallon = 3.78541 liters
    }
  },
  "speed": {
    "mph": {
      "unit": "miles per hour",
      "value": 1
    },
    "mps": {
      "unit": "meters per second",
      "value": 0.44704,
      "formula": "value * 0.44704" // Conversion factor: 1 mph = 0.44704 m/s
    }
  },
  "length_distance": {
    "feet": {
      "unit": "feet",
      "value": 1
    },
    "meters": {
      "unit": "meters",
      "value": 0.3048,
      "formula": "value * 0.3048" // Conversion factor: 1 foot = 0.3048 meters
    }
  }
  // Add more conversions as needed
}