diff --git a/Common/UnitDefinitions/Acceleration.json b/Common/UnitDefinitions/Acceleration.json index e321963a75..939df39ce6 100644 --- a/Common/UnitDefinitions/Acceleration.json +++ b/Common/UnitDefinitions/Acceleration.json @@ -75,14 +75,14 @@ "L": "NauticalMile", "T": "Second" }, - "FromUnitToBaseFunc": "{x} * 0.5144444444444", - "FromBaseToUnitFunc": "{x} / 0.5144444444444", + "FromUnitToBaseFunc": "{x} * (1852.0 / 3600.0)", + "FromBaseToUnitFunc": "{x} / (1852.0 / 3600.0)", "Localization": [ { "Culture": "en-US", "Abbreviations": [ "kn/s" ] }, - { + { "Culture": "ru-RU", "Abbreviations": [ "узел/с" ] } @@ -95,14 +95,16 @@ "L": "NauticalMile", "T": "Minute" }, - "FromUnitToBaseFunc": "{x} * 0.5144444444444 / 60", - "FromBaseToUnitFunc": "{x} / 0.5144444444444 * 60", + "XmlDocSummary": "The knot (/nɒt/) is a unit of speed equal to one nautical mile per hour, exactly 1.852 km/h (approximately 1.151 mph or 0.514 m/s).", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Knot_(unit)", + "FromUnitToBaseFunc": "{x} * (1852.0 / 3600.0) / 60", + "FromBaseToUnitFunc": "{x} * 60 / (1852.0 / 3600.0)", "Localization": [ { "Culture": "en-US", "Abbreviations": [ "kn/min" ] }, - { + { "Culture": "ru-RU", "Abbreviations": [ "узел/мин" ] } @@ -115,14 +117,16 @@ "L": "NauticalMile", "T": "Hour" }, - "FromUnitToBaseFunc": "{x} * 0.5144444444444 / 3600", - "FromBaseToUnitFunc": "{x} / 0.5144444444444 * 3600", + "XmlDocSummary": "The knot (/nɒt/) is a unit of speed equal to one nautical mile per hour, exactly 1.852 km/h (approximately 1.151 mph or 0.514 m/s).", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Knot_(unit)", + "FromUnitToBaseFunc": "{x} * (1852.0 / 3600.0) / 3600", + "FromBaseToUnitFunc": "{x} * 3600 / (1852.0 / 3600.0)", "Localization": [ { "Culture": "en-US", "Abbreviations": [ "kn/h" ] }, - { + { "Culture": "ru-RU", "Abbreviations": [ "узел/час" ] } diff --git a/Common/UnitDefinitions/AreaMomentOfInertia.json b/Common/UnitDefinitions/AreaMomentOfInertia.json index 29dd2f5530..e5017da3d3 100644 --- a/Common/UnitDefinitions/AreaMomentOfInertia.json +++ b/Common/UnitDefinitions/AreaMomentOfInertia.json @@ -72,8 +72,8 @@ "BaseUnits": { "L": "Foot" }, - "FromUnitToBaseFunc": "{x} * Math.Pow(0.3048, 4)", - "FromBaseToUnitFunc": "{x} / Math.Pow(0.3048, 4)", + "FromUnitToBaseFunc": "{x} * 0.0086309748412416", + "FromBaseToUnitFunc": "{x} / 0.0086309748412416", "Localization": [ { "Culture": "en-US", @@ -87,8 +87,8 @@ "BaseUnits": { "L": "Inch" }, - "FromUnitToBaseFunc": "{x} * Math.Pow(2.54e-2, 4)", - "FromBaseToUnitFunc": "{x} / Math.Pow(2.54e-2, 4)", + "FromUnitToBaseFunc": "{x} * 0.0000004162314256", + "FromBaseToUnitFunc": "{x} / 0.0000004162314256", "Localization": [ { "Culture": "en-US", diff --git a/Common/UnitDefinitions/BrakeSpecificFuelConsumption.json b/Common/UnitDefinitions/BrakeSpecificFuelConsumption.json index d9114ed833..b059dde220 100644 --- a/Common/UnitDefinitions/BrakeSpecificFuelConsumption.json +++ b/Common/UnitDefinitions/BrakeSpecificFuelConsumption.json @@ -38,8 +38,8 @@ { "SingularName": "PoundPerMechanicalHorsepowerHour", "PluralName": "PoundsPerMechanicalHorsepowerHour", - "FromUnitToBaseFunc": "{x} * 1.689659410672e-7", - "FromBaseToUnitFunc": "{x} / 1.689659410672e-7", + "FromUnitToBaseFunc": "{x} * (0.45359237 / (76.0402249 * 9.80665))/3600", + "FromBaseToUnitFunc": "{x} * 3600 / (0.45359237 / (76.0402249 * 9.80665))", "XmlDocSummary": "The pound per horse power hour uses mechanical horse power and the imperial pound", "Localization": [ { diff --git a/Common/UnitDefinitions/Density.json b/Common/UnitDefinitions/Density.json index 9ed8cba6a1..06bbfcccd5 100644 --- a/Common/UnitDefinitions/Density.json +++ b/Common/UnitDefinitions/Density.json @@ -70,8 +70,8 @@ "L": "Inch", "M": "Pound" }, - "FromUnitToBaseFunc": "{x} / 3.6127298147753e-5", - "FromBaseToUnitFunc": "{x} * 3.6127298147753e-5", + "FromUnitToBaseFunc": "{x} * 0.45359237 / 1.6387064e-5", + "FromBaseToUnitFunc": "{x} * 1.6387064e-5 / 0.45359237", "Prefixes": [ "Kilo" ], "Localization": [ { @@ -88,8 +88,8 @@ "L": "Foot", "M": "Pound" }, - "FromUnitToBaseFunc": "{x} / 0.062427961", - "FromBaseToUnitFunc": "{x} * 0.062427961", + "FromUnitToBaseFunc": "{x} * 0.45359237 / 0.028316846592", + "FromBaseToUnitFunc": "{x} * 0.028316846592 / 0.45359237", "Prefixes": [ "Kilo" ], "Localization": [ { @@ -102,13 +102,13 @@ { "SingularName": "PoundPerCubicYard", "PluralName": "PoundsPerCubicYard", - "XmlDocSummary": "Calculated from the definition of pound and yard compared to metric kilogram and meter.", + "XmlDocSummary": "Calculated from the definition of pound and Cubic yard compared to metric kilogram and meter.", "BaseUnits": { "L": "Yard", "M": "Pound" }, - "FromUnitToBaseFunc": "{x} * (0.45359237 / 0.9144 / 0.9144 / 0.9144)", - "FromBaseToUnitFunc": "{x} / (0.45359237 / 0.9144 / 0.9144 / 0.9144)", + "FromUnitToBaseFunc": "{x} * 0.45359237 / 0.764554857984", + "FromBaseToUnitFunc": "{x} * 0.764554857984 / 0.45359237", "Prefixes": [ "Kilo" ], "Localization": [ { @@ -173,8 +173,8 @@ "L": "Foot", "M": "Slug" }, - "FromUnitToBaseFunc": "{x} * 515.378818", - "FromBaseToUnitFunc": "{x} * 0.00194032033", + "FromUnitToBaseFunc": "{x} * (0.45359237 * 9.80665) / (0.3048 * 0.028316846592)", + "FromBaseToUnitFunc": "{x} * (0.3048 * 0.028316846592) / (0.45359237 * 9.80665)", "Localization": [ { "Culture": "en-US", @@ -232,8 +232,8 @@ { "SingularName": "PoundPerUSGallon", "PluralName": "PoundsPerUSGallon", - "FromUnitToBaseFunc": "{x} * 1.19826427e2", - "FromBaseToUnitFunc": "{x} / 1.19826427e2", + "FromUnitToBaseFunc": "{x} * 0.45359237 / 0.003785411784", + "FromBaseToUnitFunc": "{x} * 0.003785411784 / 0.45359237", "Localization": [ { "Culture": "en-US", @@ -244,8 +244,8 @@ { "SingularName": "PoundPerImperialGallon", "PluralName": "PoundsPerImperialGallon", - "FromUnitToBaseFunc": "{x} * 9.9776398e1", - "FromBaseToUnitFunc": "{x} / 9.9776398e1", + "FromUnitToBaseFunc": "{x} * 0.45359237 / 0.00454609", + "FromBaseToUnitFunc": "{x} * 0.00454609 / 0.45359237", "Localization": [ { "Culture": "en-US", @@ -276,8 +276,8 @@ "L": "Foot", "M": "Tonne" }, - "FromUnitToBaseFunc": "{x} * 3.53146667214886e4", - "FromBaseToUnitFunc": "{x} / 3.53146667214886e4", + "FromUnitToBaseFunc": "{x} * 1000 / 0.028316846592", + "FromBaseToUnitFunc": "{x} * 0.028316846592 / 1000", "Localization": [ { "Culture": "en-US", @@ -292,8 +292,8 @@ "L": "Inch", "M": "Tonne" }, - "FromUnitToBaseFunc": "{x} * 6.10237440947323e7", - "FromBaseToUnitFunc": "{x} / 6.10237440947323e7", + "FromUnitToBaseFunc": "{x} * 1000 / 1.6387064e-5", + "FromBaseToUnitFunc": "{x} * 1.6387064e-5 / 1000", "Localization": [ { "Culture": "en-US", @@ -308,8 +308,8 @@ "L": "Foot", "M": "Gram" }, - "FromUnitToBaseFunc": "{x} * 0.0353146667214886", - "FromBaseToUnitFunc": "{x} / 0.0353146667214886", + "FromUnitToBaseFunc": "{x} * 0.001 / 0.028316846592", + "FromBaseToUnitFunc": "{x} * 0.028316846592 / 0.001", "Localization": [ { "Culture": "en-US", @@ -324,8 +324,8 @@ "L": "Inch", "M": "Gram" }, - "FromUnitToBaseFunc": "{x} * 61.0237440947323", - "FromBaseToUnitFunc": "{x} / 61.0237440947323", + "FromUnitToBaseFunc": "{x} * 0.001 / 1.6387064e-5", + "FromBaseToUnitFunc": "{x} * 1.6387064e-5 / 0.001", "Localization": [ { "Culture": "en-US", @@ -340,8 +340,8 @@ "L": "Meter", "M": "Pound" }, - "FromUnitToBaseFunc": "{x} / 2.204622621848775", - "FromBaseToUnitFunc": "{x} * 2.204622621848775", + "FromUnitToBaseFunc": "{x} * 0.45359237", + "FromBaseToUnitFunc": "{x} / 0.45359237", "Localization": [ { "Culture": "en-US", @@ -356,8 +356,8 @@ "L": "Centimeter", "M": "Pound" }, - "FromUnitToBaseFunc": "{x} / 2.204622621848775e-6", - "FromBaseToUnitFunc": "{x} * 2.204622621848775e-6", + "FromUnitToBaseFunc": "{x} * 0.45359237e6", + "FromBaseToUnitFunc": "{x} / 0.45359237e6", "Localization": [ { "Culture": "en-US", @@ -372,8 +372,8 @@ "L": "Millimeter", "M": "Pound" }, - "FromUnitToBaseFunc": "{x} / 2.204622621848775e-9", - "FromBaseToUnitFunc": "{x} * 2.204622621848775e-9", + "FromUnitToBaseFunc": "{x} * 0.45359237e9", + "FromBaseToUnitFunc": "{x} / 0.45359237e9", "Localization": [ { "Culture": "en-US", @@ -388,8 +388,8 @@ "L": "Meter", "M": "Slug" }, - "FromUnitToBaseFunc": "{x} * 14.5939", - "FromBaseToUnitFunc": "{x} / 14.5939", + "FromUnitToBaseFunc": "{x} * 0.45359237 * 9.80665 / 0.3048", + "FromBaseToUnitFunc": "{x} * 0.3048 / (0.45359237 * 9.80665)", "Localization": [ { "Culture": "en-US", @@ -404,8 +404,8 @@ "L": "Centimeter", "M": "Slug" }, - "FromUnitToBaseFunc": "{x} * 14593903", - "FromBaseToUnitFunc": "{x} / 14593903", + "FromUnitToBaseFunc": "{x} * 0.45359237e6 * 9.80665 / 0.3048", + "FromBaseToUnitFunc": "{x} * 0.3048 / (0.45359237e6 * 9.80665)", "Localization": [ { "Culture": "en-US", @@ -420,8 +420,8 @@ "L": "Millimeter", "M": "Slug" }, - "FromUnitToBaseFunc": "{x} * 14593903000", - "FromBaseToUnitFunc": "{x} / 14593903000", + "FromUnitToBaseFunc": "{x} * 0.45359237e9 * 9.80665 / 0.3048", + "FromBaseToUnitFunc": "{x} * 0.3048 / (0.45359237e9 * 9.80665)", "Localization": [ { "Culture": "en-US", @@ -436,8 +436,8 @@ "L": "Inch", "M": "Slug" }, - "FromUnitToBaseFunc": "{x} * 890574.60201535", - "FromBaseToUnitFunc": "{x} / 890574.60201535", + "FromUnitToBaseFunc": "{x} * (0.45359237 * 9.80665) / (0.3048 * 1.6387064e-5)", + "FromBaseToUnitFunc": "{x} * (0.3048 * 1.6387064e-5) / (0.45359237 * 9.80665)", "Localization": [ { "Culture": "en-US", diff --git a/Common/UnitDefinitions/DynamicViscosity.json b/Common/UnitDefinitions/DynamicViscosity.json index 02c7b26d1e..d5ab8143c9 100644 --- a/Common/UnitDefinitions/DynamicViscosity.json +++ b/Common/UnitDefinitions/DynamicViscosity.json @@ -55,8 +55,8 @@ { "SingularName": "Reyn", "PluralName": "Reyns", - "FromUnitToBaseFunc": "{x} * 6.8947572931683613e3", - "FromBaseToUnitFunc": "{x} / 6.8947572931683613e3", + "FromUnitToBaseFunc": "{x} * 4.4482216152605 / 0.00064516", + "FromBaseToUnitFunc": "{x} * 0.00064516 / 4.4482216152605", "Localization": [ { "Culture": "en-US", @@ -67,8 +67,8 @@ { "SingularName": "PoundForceSecondPerSquareInch", "PluralName": "PoundsForceSecondPerSquareInch", - "FromUnitToBaseFunc": "{x} * 6.8947572931683613e3", - "FromBaseToUnitFunc": "{x} / 6.8947572931683613e3", + "FromUnitToBaseFunc": "{x} * 4.4482216152605 / 0.00064516", + "FromBaseToUnitFunc": "{x} * 0.00064516 / 4.4482216152605", "Localization": [ { "Culture": "en-US", @@ -79,8 +79,8 @@ { "SingularName": "PoundForceSecondPerSquareFoot", "PluralName": "PoundsForceSecondPerSquareFoot", - "FromUnitToBaseFunc": "{x} * 4.7880258980335843e1", - "FromBaseToUnitFunc": "{x} / 4.7880258980335843e1", + "FromUnitToBaseFunc": "{x} * 4.4482216152605 / 9.290304e-2", + "FromBaseToUnitFunc": "{x} * 9.290304e-2 / 4.4482216152605", "Localization": [ { "Culture": "en-US", @@ -91,8 +91,8 @@ { "SingularName": "PoundPerFootSecond", "PluralName": "PoundsPerFootSecond", - "FromUnitToBaseFunc": "{x} * 1.4881639", - "FromBaseToUnitFunc": "{x} / 1.4881639", + "FromUnitToBaseFunc": "{x} * 0.45359237 / 0.3048", + "FromBaseToUnitFunc": "{x} * 0.3048 / 0.45359237", "Localization": [ { "Culture": "en-US", diff --git a/Common/UnitDefinitions/ElectricConductivity.json b/Common/UnitDefinitions/ElectricConductivity.json index 2bd4a0033b..c6a143678d 100644 --- a/Common/UnitDefinitions/ElectricConductivity.json +++ b/Common/UnitDefinitions/ElectricConductivity.json @@ -31,8 +31,8 @@ { "SingularName": "SiemensPerInch", "PluralName": "SiemensPerInch", - "FromUnitToBaseFunc": "{x} * 3.937007874015748e1", - "FromBaseToUnitFunc": "{x} / 3.937007874015748e1", + "FromUnitToBaseFunc": "{x} / 2.54e-2", + "FromBaseToUnitFunc": "{x} * 2.54e-2", "Localization": [ { "Culture": "en-US", @@ -43,8 +43,8 @@ { "SingularName": "SiemensPerFoot", "PluralName": "SiemensPerFoot", - "FromUnitToBaseFunc": "{x} * 3.2808398950131234", - "FromBaseToUnitFunc": "{x} / 3.2808398950131234", + "FromUnitToBaseFunc": "{x} / 0.3048", + "FromBaseToUnitFunc": "{x} * 0.3048", "Localization": [ { "Culture": "en-US", diff --git a/Common/UnitDefinitions/ElectricCurrentDensity.json b/Common/UnitDefinitions/ElectricCurrentDensity.json index d59571b095..62a5c10735 100644 --- a/Common/UnitDefinitions/ElectricCurrentDensity.json +++ b/Common/UnitDefinitions/ElectricCurrentDensity.json @@ -31,8 +31,8 @@ "L": "Inch", "I": "Ampere" }, - "FromUnitToBaseFunc": "{x} * 1.5500031000062000e3", - "FromBaseToUnitFunc": "{x} / 1.5500031000062000e3", + "FromUnitToBaseFunc": "{x} / 0.00064516", + "FromBaseToUnitFunc": "{x} * 0.00064516", "Localization": [ { "Culture": "en-US", @@ -47,8 +47,8 @@ "L": "Foot", "I": "Ampere" }, - "FromUnitToBaseFunc": "{x} * 1.0763910416709722e1", - "FromBaseToUnitFunc": "{x} / 1.0763910416709722e1", + "FromUnitToBaseFunc": "{x} / 9.290304e-2", + "FromBaseToUnitFunc": "{x} * 9.290304e-2", "Localization": [ { "Culture": "en-US", diff --git a/Common/UnitDefinitions/ElectricSurfaceChargeDensity.json b/Common/UnitDefinitions/ElectricSurfaceChargeDensity.json index 471a6f828a..41091cb4c8 100644 --- a/Common/UnitDefinitions/ElectricSurfaceChargeDensity.json +++ b/Common/UnitDefinitions/ElectricSurfaceChargeDensity.json @@ -51,8 +51,8 @@ "T": "Second", "I": "Ampere" }, - "FromUnitToBaseFunc": "{x} * 1.5500031000062000e3", - "FromBaseToUnitFunc": "{x} / 1.5500031000062000e3", + "FromUnitToBaseFunc": "{x} / 0.00064516", + "FromBaseToUnitFunc": "{x} * 0.00064516", "Localization": [ { "Culture": "en-US", diff --git a/Common/UnitDefinitions/Energy.json b/Common/UnitDefinitions/Energy.json index 7e48f0bdf2..c12d3a934f 100644 --- a/Common/UnitDefinitions/Energy.json +++ b/Common/UnitDefinitions/Energy.json @@ -55,8 +55,10 @@ { "SingularName": "ElectronVolt", "PluralName": "ElectronVolts", - "FromUnitToBaseFunc": "{x} * 1.602176565e-19", - "FromBaseToUnitFunc": "{x} / 1.602176565e-19", + "XmlDocSummary": "In physics, an electronvolt (symbol eV, also written electron-volt and electron volt) is the measure of an amount of kinetic energy gained by a single electron accelerating from rest through an electric potential difference of one volt in vacuum. When used as a unit of energy, the numerical value of 1 eV in joules (symbol J) is equivalent to the numerical value of the charge of an electron in coulombs (symbol C). Under the 2019 redefinition of the SI base units, this sets 1 eV equal to the exact value 1.602176634×10−19 J.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Electronvolt", + "FromUnitToBaseFunc": "{x} * 1.602176634e-19", + "FromBaseToUnitFunc": "{x} / 1.602176634e-19", "Prefixes": [ "Kilo", "Mega", @@ -77,8 +79,10 @@ { "SingularName": "FootPound", "PluralName": "FootPounds", - "FromUnitToBaseFunc": "{x} * 1.355817948", - "FromBaseToUnitFunc": "{x} / 1.355817948", + "XmlDocSummary": "A pound-foot (lb⋅ft), abbreviated from pound-force foot (lbf · ft), is a unit of torque representing one pound of force acting at a perpendicular distance of one foot from a pivot point. Conversely one foot pound-force (ft · lbf) is the moment about an axis that applies one pound-force at a radius of one foot.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Pound-foot_(torque)", + "FromUnitToBaseFunc": "{x} * 1.3558179483314004", + "FromBaseToUnitFunc": "{x} / 1.3558179483314004", "Localization": [ { "Culture": "en-US", @@ -89,6 +93,8 @@ { "SingularName": "Erg", "PluralName": "Ergs", + "XmlDocSummary": "The erg is a unit of energy equal to 10−7 joules (100 nJ). It originated in the Centimetre–gram–second system of units (CGS). It has the symbol erg. The erg is not an SI unit. Its name is derived from ergon (ἔργον), a Greek word meaning 'work' or 'task'.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Erg", "FromUnitToBaseFunc": "{x} * 1e-7", "FromBaseToUnitFunc": "{x} / 1e-7", "Localization": [ @@ -135,6 +141,8 @@ { "SingularName": "ThermEc", "PluralName": "ThermsEc", + "XmlDocSummary": "The therm (symbol, thm) is a non-SI unit of heat energy equal to 100,000 British thermal units (BTU), and approximately 105 megajoules, 29.3 kilowatt-hours, 25,200 kilocalories and 25.2 thermies. One therm is the energy content of approximately 100 cubic feet (2.83 cubic metres) of natural gas at standard temperature and pressure. However, the BTU is not standardised worldwide, with slightly different values in the EU, UK, and United States, meaning that the energy content of the therm also varies by territory.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Therm", "FromUnitToBaseFunc": "{x} * 1.05505585262e8", "FromBaseToUnitFunc": "{x} / 1.05505585262e8", "Prefixes": [ "Deca" ], @@ -154,6 +162,8 @@ { "SingularName": "ThermUs", "PluralName": "ThermsUs", + "XmlDocSummary": "The therm (symbol, thm) is a non-SI unit of heat energy equal to 100,000 British thermal units (BTU), and approximately 105 megajoules, 29.3 kilowatt-hours, 25,200 kilocalories and 25.2 thermies. One therm is the energy content of approximately 100 cubic feet (2.83 cubic metres) of natural gas at standard temperature and pressure. However, the BTU is not standardised worldwide, with slightly different values in the EU, UK, and United States, meaning that the energy content of the therm also varies by territory.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Therm", "FromUnitToBaseFunc": "{x} * 1.054804e8", "FromBaseToUnitFunc": "{x} / 1.054804e8", "Prefixes": [ "Deca" ], @@ -173,6 +183,8 @@ { "SingularName": "ThermImperial", "PluralName": "ThermsImperial", + "XmlDocSummary": "The therm (symbol, thm) is a non-SI unit of heat energy equal to 100,000 British thermal units (BTU), and approximately 105 megajoules, 29.3 kilowatt-hours, 25,200 kilocalories and 25.2 thermies. One therm is the energy content of approximately 100 cubic feet (2.83 cubic metres) of natural gas at standard temperature and pressure. However, the BTU is not standardised worldwide, with slightly different values in the EU, UK, and United States, meaning that the energy content of the therm also varies by territory.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Therm", "FromUnitToBaseFunc": "{x} * 1.05505585257348e8", "FromBaseToUnitFunc": "{x} / 1.05505585257348e8", "Prefixes": [ "Deca" ], @@ -192,8 +204,10 @@ { "SingularName": "HorsepowerHour", "PluralName": "HorsepowerHours", - "FromUnitToBaseFunc": "{x} * 2.6845195377e6", - "FromBaseToUnitFunc": "{x} / 2.6845195377e6", + "XmlDocSummary": "A horsepower-hour (symbol: hp⋅h) is an outdated unit of energy, not used in the International System of Units. The unit represents an amount of work a horse is supposed capable of delivering during an hour (1 horsepower integrated over a time interval of an hour).", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Horsepower-hour", + "FromUnitToBaseFunc": "{x} * 76.0402249 * 9.80665 * 3600", + "FromBaseToUnitFunc": "{x} / (76.0402249 * 9.80665 * 3600)", "Localization": [ { "Culture": "en-US", diff --git a/Common/UnitDefinitions/ForceChangeRate.json b/Common/UnitDefinitions/ForceChangeRate.json index f4921d65ba..8546b4f364 100644 --- a/Common/UnitDefinitions/ForceChangeRate.json +++ b/Common/UnitDefinitions/ForceChangeRate.json @@ -42,8 +42,8 @@ { "SingularName": "PoundForcePerMinute", "PluralName": "PoundsForcePerMinute", - "FromUnitToBaseFunc": "{x} * 4.4482216152605095551842641431421 / 60", - "FromBaseToUnitFunc": "{x} / 4.4482216152605095551842641431421 * 60", + "FromUnitToBaseFunc": "{x} * 4.4482216152605 / 60", + "FromBaseToUnitFunc": "{x} / 4.4482216152605 * 60", "Prefixes": [ "Kilo" ], "Localization": [ { @@ -56,8 +56,8 @@ { "SingularName": "PoundForcePerSecond", "PluralName": "PoundsForcePerSecond", - "FromUnitToBaseFunc": "{x} * 4.4482216152605095551842641431421", - "FromBaseToUnitFunc": "{x} / 4.4482216152605095551842641431421", + "FromUnitToBaseFunc": "{x} * 4.4482216152605", + "FromBaseToUnitFunc": "{x} / 4.4482216152605", "Prefixes": [ "Kilo" ], "Localization": [ { diff --git a/Common/UnitDefinitions/ForcePerLength.json b/Common/UnitDefinitions/ForcePerLength.json index f1a016db3c..a5209a996f 100644 --- a/Common/UnitDefinitions/ForcePerLength.json +++ b/Common/UnitDefinitions/ForcePerLength.json @@ -53,8 +53,8 @@ { "SingularName": "KilogramForcePerMeter", "PluralName": "KilogramsForcePerMeter", - "FromUnitToBaseFunc": "{x} * 9.80665002864", - "FromBaseToUnitFunc": "{x} / 9.80665002864", + "FromUnitToBaseFunc": "{x} * 9.80665", + "FromBaseToUnitFunc": "{x} / 9.80665", "Localization": [ { "Culture": "en-US", @@ -69,8 +69,8 @@ { "SingularName": "KilogramForcePerCentimeter", "PluralName": "KilogramsForcePerCentimeter", - "FromUnitToBaseFunc": "{x} * 980.665002864", - "FromBaseToUnitFunc": "{x} / 980.665002864", + "FromUnitToBaseFunc": "{x} * 980.665", + "FromBaseToUnitFunc": "{x} / 980.665", "Localization": [ { "Culture": "en-US", @@ -85,8 +85,8 @@ { "SingularName": "KilogramForcePerMillimeter", "PluralName": "KilogramsForcePerMillimeter", - "FromUnitToBaseFunc": "{x} * 9.80665002864e3", - "FromBaseToUnitFunc": "{x} / 9.80665002864e3", + "FromUnitToBaseFunc": "{x} * 9.80665e3", + "FromBaseToUnitFunc": "{x} / 9.80665e3", "Localization": [ { "Culture": "en-US", @@ -101,8 +101,8 @@ { "SingularName": "TonneForcePerMeter", "PluralName": "TonnesForcePerMeter", - "FromUnitToBaseFunc": "{x} * 9.80665002864e3", - "FromBaseToUnitFunc": "{x} / 9.80665002864e3", + "FromUnitToBaseFunc": "{x} * 9.80665e3", + "FromBaseToUnitFunc": "{x} / 9.80665e3", "Localization": [ { "Culture": "en-US", @@ -117,8 +117,8 @@ { "SingularName": "TonneForcePerCentimeter", "PluralName": "TonnesForcePerCentimeter", - "FromUnitToBaseFunc": "{x} * 9.80665002864e5", - "FromBaseToUnitFunc": "{x} / 9.80665002864e5", + "FromUnitToBaseFunc": "{x} * 9.80665e5", + "FromBaseToUnitFunc": "{x} / 9.80665e5", "Localization": [ { "Culture": "en-US", @@ -133,8 +133,8 @@ { "SingularName": "TonneForcePerMillimeter", "PluralName": "TonnesForcePerMillimeter", - "FromUnitToBaseFunc": "{x} * 9.80665002864e6", - "FromBaseToUnitFunc": "{x} / 9.80665002864e6", + "FromUnitToBaseFunc": "{x} * 9.80665e6", + "FromBaseToUnitFunc": "{x} / 9.80665e6", "Localization": [ { "Culture": "en-US", @@ -149,8 +149,8 @@ { "SingularName": "PoundForcePerFoot", "PluralName": "PoundsForcePerFoot", - "FromUnitToBaseFunc": "{x} * 14.59390292", - "FromBaseToUnitFunc": "{x} / 14.59390292", + "FromUnitToBaseFunc": "{x} * 4.4482216152605 / 0.3048", + "FromBaseToUnitFunc": "{x} * 0.3048 / 4.4482216152605", "Localization": [ { "Culture": "en-US", @@ -161,8 +161,8 @@ { "SingularName": "PoundForcePerInch", "PluralName": "PoundsForcePerInch", - "FromUnitToBaseFunc": "{x} * 1.75126835e2", - "FromBaseToUnitFunc": "{x} / 1.75126835e2", + "FromUnitToBaseFunc": "{x} * 4.4482216152605 / 2.54e-2", + "FromBaseToUnitFunc": "{x} * 2.54e-2 / 4.4482216152605", "Localization": [ { "Culture": "en-US", @@ -173,8 +173,8 @@ { "SingularName": "PoundForcePerYard", "PluralName": "PoundsForcePerYard", - "FromUnitToBaseFunc": "{x} * 4.864634307", - "FromBaseToUnitFunc": "{x} / 4.864634307", + "FromUnitToBaseFunc": "{x} * 4.4482216152605 / 0.9144", + "FromBaseToUnitFunc": "{x} * 0.9144 / 4.4482216152605", "Localization": [ { "Culture": "en-US", @@ -185,8 +185,8 @@ { "SingularName": "KilopoundForcePerFoot", "PluralName": "KilopoundsForcePerFoot", - "FromUnitToBaseFunc": "{x} * 14593.90292", - "FromBaseToUnitFunc": "{x} / 14593.90292", + "FromUnitToBaseFunc": "{x} * 4.4482216152605 / 0.3048e-3", + "FromBaseToUnitFunc": "{x} * 0.3048e-3 / 4.4482216152605", "Localization": [ { "Culture": "en-US", @@ -197,8 +197,8 @@ { "SingularName": "KilopoundForcePerInch", "PluralName": "KilopoundsForcePerInch", - "FromUnitToBaseFunc": "{x} * 1.75126835e5", - "FromBaseToUnitFunc": "{x} / 1.75126835e5", + "FromUnitToBaseFunc": "{x} * 4.4482216152605 / 2.54e-5", + "FromBaseToUnitFunc": "{x} * 2.54e-5 / 4.4482216152605", "Localization": [ { "Culture": "en-US", diff --git a/Common/UnitDefinitions/Frequency.json b/Common/UnitDefinitions/Frequency.json index 9cfeba9a8a..6113b390d1 100644 --- a/Common/UnitDefinitions/Frequency.json +++ b/Common/UnitDefinitions/Frequency.json @@ -29,8 +29,10 @@ { "SingularName": "RadianPerSecond", "PluralName": "RadiansPerSecond", - "FromUnitToBaseFunc": "{x} / 6.2831853072", - "FromBaseToUnitFunc": "{x} * 6.2831853072", + "XmlDocSummary": "In SI units, angular frequency is normally presented with the unit radian per second, and need not express a rotational value. The unit hertz (Hz) is dimensionally equivalent, but by convention it is only used for frequency f, never for angular frequency ω. This convention is used to help avoid the confusion that arises when dealing with quantities such as frequency and angular quantities because the units of measure (such as cycle or radian) are considered to be one and hence may be omitted when expressing quantities in terms of SI units.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Angular_frequency", + "FromUnitToBaseFunc": "{x} / (2 * Math.PI)", + "FromBaseToUnitFunc": "{x} * (2 * Math.PI)", "OmitExtensionMethod": true, "Localization": [ { diff --git a/Common/UnitDefinitions/Irradiation.json b/Common/UnitDefinitions/Irradiation.json index 2f8b31e6e2..b80882b633 100644 --- a/Common/UnitDefinitions/Irradiation.json +++ b/Common/UnitDefinitions/Irradiation.json @@ -66,8 +66,8 @@ { "SingularName": "BtuPerSquareFoot", "PluralName": "BtusPerSquareFoot", - "FromUnitToBaseFunc": "{x} * (52752792631d / 4645152d)", - "FromBaseToUnitFunc": "{x} / (52752792631d / 4645152d)", + "FromUnitToBaseFunc": "{x} * 1055.05585262 / 9.290304e-2", + "FromBaseToUnitFunc": "{x} * 9.290304e-2 / 1055.05585262", "Prefixes": [ "Kilo" ], "Localization": [ { diff --git a/Common/UnitDefinitions/KinematicViscosity.json b/Common/UnitDefinitions/KinematicViscosity.json index dd1893f2e9..a40ec9a10b 100644 --- a/Common/UnitDefinitions/KinematicViscosity.json +++ b/Common/UnitDefinitions/KinematicViscosity.json @@ -52,8 +52,8 @@ "L": "Foot", "T": "Second" }, - "FromUnitToBaseFunc": "{x} / 10.7639", - "FromBaseToUnitFunc": "{x} * 10.7639", + "FromUnitToBaseFunc": "{x} * 9.290304e-2", + "FromBaseToUnitFunc": "{x} / 9.290304e-2", "Localization": [ { "Culture": "en-US", diff --git a/Common/UnitDefinitions/Length.json b/Common/UnitDefinitions/Length.json index 9768589bf4..cb3419436e 100644 --- a/Common/UnitDefinitions/Length.json +++ b/Common/UnitDefinitions/Length.json @@ -90,6 +90,8 @@ "FromUnitToBaseFunc": "{x} * 0.3048", "FromBaseToUnitFunc": "{x} / 0.3048", "Prefixes": [ "Kilo" ], + "XmlDocSummary": "The foot (pl. feet; standard symbol: ft) is a unit of length in the British imperial and United States customary systems of measurement. The prime symbol, ′, is commonly used to represent the foot. In both customary and imperial units, one foot comprises 12 inches, and one yard comprises three feet. Since an international agreement in 1959, the foot is defined as equal to exactly 0.3048 meters.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Foot_(unit)", "Localization": [ { "Culture": "en-US", @@ -130,6 +132,8 @@ }, "FromUnitToBaseFunc": "{x} * 2.54e-2", "FromBaseToUnitFunc": "{x} / 2.54e-2", + "XmlDocSummary": "The inch (symbol: in or ″) is a unit of length in the British Imperial and the United States customary systems of measurement. It is equal to 1/36 yard or 1/12 of a foot. Derived from the Roman uncia (\"twelfth\"), the word inch is also sometimes used to translate similar units in other measurement systems, usually understood as deriving from the width of the human thumb.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Inch", "Localization": [ { "Culture": "en-US", @@ -250,8 +254,10 @@ "BaseUnits": { "L": "PrinterPoint" }, - "FromUnitToBaseFunc": "({x} / 72.27) * 2.54e-2", - "FromBaseToUnitFunc": "({x} / 2.54e-2) * 72.27", + "XmlDocSummary": "In typography, the point is the smallest unit of measure. It is used for measuring font size, leading, and other items on a printed page. In modern times this size of the point has been approximated as exactly 1⁄72.27 (0.01383700013837) of the inch by Donald Knuth for the default unit of his TeX computer typesetting system and is thus sometimes known as the TeX point.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Point_(typography)", + "FromUnitToBaseFunc": "{x} * 2.54e-2 / 72.27 ", + "FromBaseToUnitFunc": "{x} * 72.27 / 2.54e-2", "Localization": [ { "Culture": "en-US", @@ -265,8 +271,10 @@ "BaseUnits": { "L": "DtpPoint" }, - "FromUnitToBaseFunc": "({x} / 72) * 2.54e-2", - "FromBaseToUnitFunc": "({x} / 2.54e-2) * 72", + "XmlDocSummary": "The desktop publishing point (DTP) is defined as 1⁄72 of an inch (1/72 × 25.4 mm ≈ 0.353 mm) and, as with earlier American point sizes, is considered to be 1⁄12 of a pica.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Point_(typography)", + "FromUnitToBaseFunc": "{x} * 2.54e-2 / 72", + "FromBaseToUnitFunc": "{x} * 72 / 2.54e-2", "Localization": [ { "Culture": "en-US", @@ -280,8 +288,10 @@ "BaseUnits": { "L": "PrinterPica" }, - "FromUnitToBaseFunc": "{x} / 237.106301584", - "FromBaseToUnitFunc": "{x} * 237.106301584", + "XmlDocSummary": "The American pica of 0.16604 inches (~4.217 mm) was established by the United States Type Founders' Association in 1886. In TeX one pica is 400⁄2409 of an inch.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Pica_(typography)", + "FromUnitToBaseFunc": "{x} * 2.54e-2 * 400 / 2409", + "FromBaseToUnitFunc": "{x} / (2.54e-2 * 400 / 2409)", "Localization": [ { "Culture": "en-US", @@ -295,8 +305,10 @@ "BaseUnits": { "L": "DtpPica" }, - "FromUnitToBaseFunc": "{x} / 236.220472441", - "FromBaseToUnitFunc": "{x} * 236.220472441", + "XmlDocSummary": "The pica is a typographic unit of measure corresponding to approximately 1⁄6 of an inch, or from 1⁄68 to 1⁄73 of a foot. One pica is further divided into 12 points.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Pica_(typography)", + "FromUnitToBaseFunc": "{x} * 2.54e-2 / 6", + "FromBaseToUnitFunc": "{x} * 6 / 2.54e-2", "Localization": [ { "Culture": "en-US", @@ -310,8 +322,10 @@ "BaseUnits": { "L": "Twip" }, - "FromUnitToBaseFunc": "{x} / 56692.913385826", - "FromBaseToUnitFunc": "{x} * 56692.913385826", + "XmlDocSummary": "A twip (abbreviating \"twentieth of a point\" or \"twentieth of an inch point\") is a typographical measurement, defined as 1⁄20 of a typographical point. One twip is 1⁄1440 inch, or ~17.64 μm.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Twip", + "FromUnitToBaseFunc": "{x} * 2.54e-2 / 1440", + "FromBaseToUnitFunc": "{x} * 1440 / 2.54e-2", "Localization": [ { "Culture": "en-US", @@ -325,6 +339,8 @@ "BaseUnits": { "L": "Hand" }, + "XmlDocSummary": "The hand is a non-SI unit of measurement of length standardized to 4 in (101.6 mm). It is used to measure the height of horses in many English-speaking countries, including Australia, Canada, Ireland, the United Kingdom, and the United States. It was originally based on the breadth of a human hand.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Hand_(unit)", "FromUnitToBaseFunc": "{x} * 1.016e-1", "FromBaseToUnitFunc": "{x} / 1.016e-1", "Localization": [ @@ -410,6 +426,8 @@ "BaseUnits": { "L": "Chain" }, + "XmlDocSummary": "The chain (abbreviated ch) is a unit of length equal to 66 feet (22 yards), used in both the US customary and Imperial unit systems. It is subdivided into 100 links. There are 10 chains in a furlong, and 80 chains in one statute mile. In metric terms, it is 20.1168 m long.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Chain_(unit)", "FromUnitToBaseFunc": "{x} * 20.1168", "FromBaseToUnitFunc": "{x} / 20.1168", "Localization": [ diff --git a/Common/UnitDefinitions/LinearDensity.json b/Common/UnitDefinitions/LinearDensity.json index 45d9337bb3..966badfbfb 100644 --- a/Common/UnitDefinitions/LinearDensity.json +++ b/Common/UnitDefinitions/LinearDensity.json @@ -66,8 +66,8 @@ "M": "Pound", "L": "Inch" }, - "FromUnitToBaseFunc": "{x} / 5.5997415e-2", - "FromBaseToUnitFunc": "{x} * 5.5997415e-2", + "FromUnitToBaseFunc": "{x} * 0.45359237 / 2.54e-2", + "FromBaseToUnitFunc": "{x} * 2.54e-2 / 0.45359237", "Localization": [ { "Culture": "en-US", @@ -82,8 +82,8 @@ "M": "Pound", "L": "Foot" }, - "FromUnitToBaseFunc": "{x} * 1.48816394", - "FromBaseToUnitFunc": "{x} / 1.48816394", + "FromUnitToBaseFunc": "{x} * 0.45359237 / 0.3048", + "FromBaseToUnitFunc": "{x} * 0.3048 / 0.45359237", "Localization": [ { "Culture": "en-US", diff --git a/Common/UnitDefinitions/LinearPowerDensity.json b/Common/UnitDefinitions/LinearPowerDensity.json index f4d0f3d158..cc0ccfe824 100644 --- a/Common/UnitDefinitions/LinearPowerDensity.json +++ b/Common/UnitDefinitions/LinearPowerDensity.json @@ -56,8 +56,8 @@ { "SingularName": "WattPerInch", "PluralName": "WattsPerInch", - "FromUnitToBaseFunc": "{x} * 39.37007874", - "FromBaseToUnitFunc": "{x} / 39.37007874", + "FromUnitToBaseFunc": "{x} / 2.54e-2", + "FromBaseToUnitFunc": "{x} * 2.54e-2", "Prefixes": [ "Milli", "Kilo", "Mega", "Giga" ], "Localization": [ { @@ -69,8 +69,8 @@ { "SingularName": "WattPerFoot", "PluralName": "WattsPerFoot", - "FromUnitToBaseFunc": "{x} * 3.280839895", - "FromBaseToUnitFunc": "{x} / 3.280839895", + "FromUnitToBaseFunc": "{x} / 0.3048", + "FromBaseToUnitFunc": "{x} * 0.3048", "Prefixes": [ "Milli", "Kilo", "Mega", "Giga" ], "Localization": [ { diff --git a/Common/UnitDefinitions/Luminance.json b/Common/UnitDefinitions/Luminance.json index adda90e9ff..0784d0047c 100644 --- a/Common/UnitDefinitions/Luminance.json +++ b/Common/UnitDefinitions/Luminance.json @@ -26,11 +26,11 @@ } ] }, - { + { "SingularName": "CandelaPerSquareFoot", "PluralName": "CandelasPerSquareFoot", - "FromUnitToBaseFunc": "{x}* 1.07639e1", - "FromBaseToUnitFunc": "{x}/ 1.07639e1", + "FromUnitToBaseFunc": "{x} / 9.290304e-2", + "FromBaseToUnitFunc": "{x} * 9.290304e-2", "Localization": [ { "Culture": "en-US", @@ -38,11 +38,11 @@ } ] }, - { + { "SingularName": "CandelaPerSquareInch", "PluralName": "CandelasPerSquareInch", - "FromUnitToBaseFunc": "{x}* 1.5500031e3", - "FromBaseToUnitFunc": "{x}/ 1.5500031e3", + "FromUnitToBaseFunc": "{x} / 0.00064516", + "FromBaseToUnitFunc": "{x} * 0.00064516", "Localization": [ { "Culture": "en-US", diff --git a/Common/UnitDefinitions/Mass.json b/Common/UnitDefinitions/Mass.json index 1c2cfff129..711e3c53ce 100644 --- a/Common/UnitDefinitions/Mass.json +++ b/Common/UnitDefinitions/Mass.json @@ -36,6 +36,8 @@ "BaseUnits": { "M": "Tonne" }, + "XmlDocSummary": "The tonne is a unit of mass equal to 1,000 kilograms. It is a non-SI unit accepted for use with SI. It is also referred to as a metric ton in the United States to distinguish it from the non-metric units of the short ton (United States customary units) and the long ton (British imperial units). It is equivalent to approximately 2,204.6 pounds, 1.102 short tons, and 0.984 long tons.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Tonne", "FromUnitToBaseFunc": "{x} * 1e3", "FromBaseToUnitFunc": "{x} / 1e3", "Prefixes": [ "Kilo", "Mega" ], @@ -60,10 +62,10 @@ "BaseUnits": { "M": "ShortTon" }, - "FromUnitToBaseFunc": "{x} * 9.0718474e2", - "FromBaseToUnitFunc": "{x} / 9.0718474e2", "XmlDocSummary": "The short ton is a unit of mass equal to 2,000 pounds (907.18474 kg), that is most commonly used in the United States – known there simply as the ton.", "XmlDocRemarks": "http://en.wikipedia.org/wiki/Short_ton", + "FromUnitToBaseFunc": "{x} * 907.18474", + "FromBaseToUnitFunc": "{x} / 907.18474", "Localization": [ { "Culture": "en-US", @@ -85,10 +87,10 @@ "BaseUnits": { "M": "LongTon" }, - "FromUnitToBaseFunc": "{x} * 1.0160469088e3", - "FromBaseToUnitFunc": "{x} / 1.0160469088e3", "XmlDocSummary": "Long ton (weight ton or Imperial ton) is a unit of mass equal to 2,240 pounds (1,016 kg) and is the name for the unit called the \"ton\" in the avoirdupois or Imperial system of measurements that was used in the United Kingdom and several other Commonwealth countries before metrication.", "XmlDocRemarks": "http://en.wikipedia.org/wiki/Long_ton", + "FromUnitToBaseFunc": "{x} * 1016.0469088", + "FromBaseToUnitFunc": "{x} / 1016.0469088", "Localization": [ { "Culture": "en-US", @@ -110,10 +112,10 @@ "BaseUnits": { "M": "Pound" }, - "FromUnitToBaseFunc": "{x} * 0.45359237", - "FromBaseToUnitFunc": "{x} / 0.45359237", "XmlDocSummary": "The pound or pound-mass (abbreviations: lb, lbm) is a unit of mass used in the imperial, United States customary and other systems of measurement. A number of different definitions have been used, the most common today being the international avoirdupois pound which is legally defined as exactly 0.45359237 kilograms, and which is divided into 16 avoirdupois ounces.", "XmlDocRemarks": "https://en.wikipedia.org/wiki/Pound_(mass)", + "FromUnitToBaseFunc": "{x} * 0.45359237", + "FromBaseToUnitFunc": "{x} / 0.45359237", "Prefixes": [ "Kilo", "Mega" ], "Localization": [ { @@ -136,10 +138,10 @@ "BaseUnits": { "M": "Ounce" }, - "FromUnitToBaseFunc": "{x} * 0.028349523125", - "FromBaseToUnitFunc": "{x} / 0.028349523125", "XmlDocSummary": "The international avoirdupois ounce (abbreviated oz) is defined as exactly 28.349523125 g under the international yard and pound agreement of 1959, signed by the United States and countries of the Commonwealth of Nations. 16 oz make up an avoirdupois pound.", "XmlDocRemarks": "https://en.wikipedia.org/wiki/Ounce", + "FromUnitToBaseFunc": "{x} * 0.028349523125", + "FromBaseToUnitFunc": "{x} / 0.028349523125", "Localization": [ { "Culture": "en-US", @@ -157,10 +159,10 @@ "BaseUnits": { "M": "Slug" }, - "FromUnitToBaseFunc": "{x} / 6.852176556196105e-2", - "FromBaseToUnitFunc": "{x} * 6.852176556196105e-2", "XmlDocSummary": "The slug (abbreviation slug) is a unit of mass that is accelerated by 1 ft/s² when a force of one pound (lbf) is exerted on it.", "XmlDocRemarks": "http://en.wikipedia.org/wiki/Slug_(unit)", + "FromUnitToBaseFunc": "{x} * 0.45359237 * 9.80665 / 0.3048", + "FromBaseToUnitFunc": "{x} * 0.3048 / (0.45359237 * 9.80665)", "Localization": [ { "Culture": "en-US", @@ -174,10 +176,10 @@ "BaseUnits": { "M": "Stone" }, - "FromUnitToBaseFunc": "{x} / 0.1574731728702698", - "FromBaseToUnitFunc": "{x} * 0.1574731728702698", "XmlDocSummary": "The stone (abbreviation st) is a unit of mass equal to 14 pounds avoirdupois (about 6.35 kilograms) used in Great Britain and Ireland for measuring human body weight.", "XmlDocRemarks": "http://en.wikipedia.org/wiki/Stone_(unit)", + "FromUnitToBaseFunc": "{x} * 6.35029318", + "FromBaseToUnitFunc": "{x} / 6.35029318", "Localization": [ { "Culture": "en-US", @@ -191,10 +193,10 @@ "BaseUnits": { "M": "ShortHundredweight" }, - "FromUnitToBaseFunc": "{x} / 0.022046226218487758", - "FromBaseToUnitFunc": "{x} * 0.022046226218487758", "XmlDocSummary": "The short hundredweight (abbreviation cwt) is a unit of mass equal to 100 pounds in US and Canada. In British English, the short hundredweight is referred to as the \"cental\".", "XmlDocRemarks": "https://en.wikipedia.org/wiki/Hundredweight", + "FromUnitToBaseFunc": "{x} * 45.359237", + "FromBaseToUnitFunc": "{x} / 45.359237", "Localization": [ { "Culture": "en-US", @@ -208,10 +210,10 @@ "BaseUnits": { "M": "LongHundredweight" }, - "FromUnitToBaseFunc": "{x} / 0.01968413055222121", - "FromBaseToUnitFunc": "{x} * 0.01968413055222121", "XmlDocSummary": "The long or imperial hundredweight (abbreviation cwt) is a unit of mass equal to 112 pounds in US and Canada.", "XmlDocRemarks": "https://en.wikipedia.org/wiki/Hundredweight", + "FromUnitToBaseFunc": "{x} * 50.80234544", + "FromBaseToUnitFunc": "{x} / 50.80234544", "Localization": [ { "Culture": "en-US", @@ -225,10 +227,10 @@ "BaseUnits": { "M": "Grain" }, - "FromUnitToBaseFunc": "{x} / 15432.358352941431", - "FromBaseToUnitFunc": "{x} * 15432.358352941431", "XmlDocSummary": "A grain is a unit of measurement of mass, and in the troy weight, avoirdupois, and Apothecaries' system, equal to exactly 64.79891 milligrams.", "XmlDocRemarks": "https://en.wikipedia.org/wiki/Grain_(unit)", + "FromUnitToBaseFunc": "{x} * 64.79891e-6", + "FromBaseToUnitFunc": "{x} / 64.79891e-6", "Localization": [ { "Culture": "en-US", @@ -242,10 +244,10 @@ "BaseUnits": { "M": "SolarMass" }, - "FromUnitToBaseFunc": "{x} * 1.98947e30", - "FromBaseToUnitFunc": "{x} / 1.98947e30", "XmlDocSummary": "Solar mass is a ratio unit to the mass of the solar system star, the sun.", "XmlDocRemarks": "https://en.wikipedia.org/wiki/Solar_mass", + "FromUnitToBaseFunc": "{x} * 1.98947e30", + "FromBaseToUnitFunc": "{x} / 1.98947e30", "Localization": [ { "Culture": "en-US", @@ -259,10 +261,10 @@ "BaseUnits": { "M": "EarthMass" }, - "FromUnitToBaseFunc": "{x} * 5.9722E+24", - "FromBaseToUnitFunc": "{x} / 5.9722E+24", "XmlDocSummary": "Earth mass is a ratio unit to the mass of planet Earth.", "XmlDocRemarks": "https://en.wikipedia.org/wiki/Earth_mass", + "FromUnitToBaseFunc": "{x} * 5.9722E+24", + "FromBaseToUnitFunc": "{x} / 5.9722E+24", "Localization": [ { "Culture": "en-US", diff --git a/Common/UnitDefinitions/MassConcentration.json b/Common/UnitDefinitions/MassConcentration.json index 46f40a6a76..851e05a170 100644 --- a/Common/UnitDefinitions/MassConcentration.json +++ b/Common/UnitDefinitions/MassConcentration.json @@ -178,8 +178,8 @@ "M": "Pound", "L": "Inch" }, - "FromUnitToBaseFunc": "{x} / 3.6127298147753e-5", - "FromBaseToUnitFunc": "{x} * 3.6127298147753e-5", + "FromUnitToBaseFunc": "{x} * 0.45359237 / 1.6387064e-5", + "FromBaseToUnitFunc": "{x} * 1.6387064e-5 / 0.45359237", "Prefixes": [ "Kilo" ], "Localization": [ { @@ -196,8 +196,8 @@ "M": "Pound", "L": "Foot" }, - "FromUnitToBaseFunc": "{x} / 0.062427961", - "FromBaseToUnitFunc": "{x} * 0.062427961", + "FromUnitToBaseFunc": "{x} * 0.45359237 / 0.028316846592", + "FromBaseToUnitFunc": "{x} * 0.028316846592 / 0.45359237", "Prefixes": [ "Kilo" ], "Localization": [ { @@ -214,8 +214,8 @@ "M": "Slug", "L": "Foot" }, - "FromUnitToBaseFunc": "{x} * 515.378818", - "FromBaseToUnitFunc": "{x} * 0.00194032033", + "FromUnitToBaseFunc": "{x} * (0.45359237 * 9.80665) / (0.3048 * 0.028316846592)", + "FromBaseToUnitFunc": "{x} * (0.3048 * 0.028316846592) / (0.45359237 * 9.80665)", "Localization": [ { "Culture": "en-US", @@ -226,8 +226,8 @@ { "SingularName": "PoundPerUSGallon", "PluralName": "PoundsPerUSGallon", - "FromUnitToBaseFunc": "{x} * 1.19826427e2", - "FromBaseToUnitFunc": "{x} / 1.19826427e2", + "FromUnitToBaseFunc": "{x} * 0.45359237 / 0.003785411784", + "FromBaseToUnitFunc": "{x} * 0.003785411784 / 0.45359237", "Localization": [ { "Culture": "en-US", @@ -238,8 +238,8 @@ { "SingularName": "OuncePerUSGallon", "PluralName": "OuncesPerUSGallon", - "FromUnitToBaseFunc": " {x} / 0.1335264711843", - "FromBaseToUnitFunc": "{x} * 0.1335264711843", + "FromUnitToBaseFunc": "{x} * 0.028349523125 / 0.003785411784", + "FromBaseToUnitFunc": "{x} * 0.003785411784 / 0.028349523125", "Localization": [ { "Culture": "en-US", @@ -250,8 +250,8 @@ { "SingularName": "OuncePerImperialGallon", "PluralName": "OuncesPerImperialGallon", - "FromUnitToBaseFunc": " {x} / 0.1603586720609", - "FromBaseToUnitFunc": "{x} * 0.1603586720609", + "FromUnitToBaseFunc": "{x} * 0.028349523125 / 0.00454609", + "FromBaseToUnitFunc": "{x} * 0.00454609 / 0.028349523125", "Localization": [ { "Culture": "en-US", @@ -262,8 +262,8 @@ { "SingularName": "PoundPerImperialGallon", "PluralName": "PoundsPerImperialGallon", - "FromUnitToBaseFunc": "{x} * 9.9776398e1", - "FromBaseToUnitFunc": "{x} / 9.9776398e1", + "FromUnitToBaseFunc": "{x} * 0.45359237 / 0.00454609", + "FromBaseToUnitFunc": "{x} * 0.00454609 / 0.45359237", "Localization": [ { "Culture": "en-US", diff --git a/Common/UnitDefinitions/MassFlow.json b/Common/UnitDefinitions/MassFlow.json index 720ff15948..015ce62f12 100644 --- a/Common/UnitDefinitions/MassFlow.json +++ b/Common/UnitDefinitions/MassFlow.json @@ -104,7 +104,7 @@ "M": "Tonne", "T": "Hour" }, - "FromUnitToBaseFunc": "1000 * {x} / 3.6", + "FromUnitToBaseFunc": "{x} * 1000 / 3.6", "FromBaseToUnitFunc": "{x} * 3.6 / 1000", "Localization": [ { @@ -120,8 +120,8 @@ "M": "Pound", "T": "Day" }, - "FromUnitToBaseFunc": "{x} / 190.47936", - "FromBaseToUnitFunc": "{x} * 190.47936", + "FromUnitToBaseFunc": "{x} * 453.59237 / 86400", + "FromBaseToUnitFunc": "{x} * 86400 / 453.59237", "Prefixes": [ "Mega" ], "Localization": [ { @@ -137,8 +137,8 @@ "M": "Pound", "T": "Hour" }, - "FromUnitToBaseFunc": "{x} / 7.93664", - "FromBaseToUnitFunc": "{x} * 7.93664", + "FromUnitToBaseFunc": "{x} * 453.59237 / 3600", + "FromBaseToUnitFunc": "{x} * 3600 / 453.59237", "Prefixes": [ "Mega" ], "Localization": [ { @@ -154,8 +154,8 @@ "M": "Pound", "T": "Minute" }, - "FromUnitToBaseFunc": "{x} / 0.132277", - "FromBaseToUnitFunc": "{x} * 0.132277", + "FromUnitToBaseFunc": "{x} * 453.59237 / 60", + "FromBaseToUnitFunc": "{x} * 60 / 453.59237", "Prefixes": [ "Mega" ], "Localization": [ { @@ -204,8 +204,8 @@ "M": "ShortTon", "T": "Hour" }, - "FromUnitToBaseFunc": "{x} * 251.9957611", - "FromBaseToUnitFunc": "{x} / 251.9957611", + "FromUnitToBaseFunc": "{x} * 907.18474 / 3.6", + "FromBaseToUnitFunc": "{x} * 3.6 / 907.18474", "Localization": [ { "Culture": "en-US", diff --git a/Common/UnitDefinitions/MassMomentOfInertia.json b/Common/UnitDefinitions/MassMomentOfInertia.json index a6124204a6..bacf328d60 100644 --- a/Common/UnitDefinitions/MassMomentOfInertia.json +++ b/Common/UnitDefinitions/MassMomentOfInertia.json @@ -150,8 +150,8 @@ "L": "Foot", "M": "Pound" }, - "FromUnitToBaseFunc": "{x} * 4.21401101e-2", - "FromBaseToUnitFunc": "{x} / 4.21401101e-2", + "FromUnitToBaseFunc": "{x} * (0.45359237 * 9.290304e-2)", + "FromBaseToUnitFunc": "{x} / (0.45359237 * 9.290304e-2)", "Localization": [ { "Culture": "en-US", @@ -166,8 +166,8 @@ "L": "Inch", "M": "Pound" }, - "FromUnitToBaseFunc": "{x} * 2.9263965e-4", - "FromBaseToUnitFunc": "{x} / 2.9263965e-4", + "FromUnitToBaseFunc": "{x} * (0.45359237 * 0.00064516)", + "FromBaseToUnitFunc": "{x} / (0.45359237 * 0.00064516)", "Localization": [ { "Culture": "en-US", @@ -182,8 +182,8 @@ "L": "Foot", "M": "Slug" }, - "FromUnitToBaseFunc": "{x} * 1.3558179619", - "FromBaseToUnitFunc": "{x} / 1.3558179619", + "FromUnitToBaseFunc": "{x} * 0.45359237 * 9.290304e-2 * 9.80665 / 0.3048", + "FromBaseToUnitFunc": "{x} * 0.3048 / (0.45359237 * 9.290304e-2 * 9.80665)", "Localization": [ { "Culture": "en-US", @@ -198,8 +198,8 @@ "L": "Inch", "M": "Slug" }, - "FromUnitToBaseFunc": "{x} * 9.41540242e-3", - "FromBaseToUnitFunc": "{x} / 9.41540242e-3", + "FromUnitToBaseFunc": "{x} * 0.45359237 * 0.00064516 * 9.80665 / 0.3048", + "FromBaseToUnitFunc": "{x} * 0.3048 / (0.45359237 * 0.00064516 * 9.80665)", "Localization": [ { "Culture": "en-US", diff --git a/Common/UnitDefinitions/Molarity.json b/Common/UnitDefinitions/Molarity.json index 49bba550ef..0c2471845f 100644 --- a/Common/UnitDefinitions/Molarity.json +++ b/Common/UnitDefinitions/Molarity.json @@ -49,8 +49,8 @@ "L": "Foot", "N": "PoundMole" }, - "FromUnitToBaseFunc": "{x} / 6.2427960576144611956325455827221e-5", - "FromBaseToUnitFunc": "{x} * 6.2427960576144611956325455827221e-5", + "FromUnitToBaseFunc": "{x} * 1000 * 0.45359237 / 0.028316846592", + "FromBaseToUnitFunc": "{x} / (1000 * 0.45359237 / 0.028316846592)", "Localization": [ { "Culture": "en-US", diff --git a/Common/UnitDefinitions/PorousMediumPermeability.json b/Common/UnitDefinitions/PorousMediumPermeability.json index 5f6a0f78ae..746e8805ab 100644 --- a/Common/UnitDefinitions/PorousMediumPermeability.json +++ b/Common/UnitDefinitions/PorousMediumPermeability.json @@ -10,6 +10,8 @@ { "SingularName": "Darcy", "PluralName": "Darcys", + "XmlDocSummary": "The darcy (or darcy unit) and millidarcy (md or mD) are units of permeability, named after Henry Darcy. They are not SI units, but they are widely used in petroleum engineering and geology.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Darcy_(unit)", "FromUnitToBaseFunc": "{x} * 9.869233e-13", "FromBaseToUnitFunc": "{x} / 9.869233e-13", "Prefixes": [ "Micro", "Milli" ], diff --git a/Common/UnitDefinitions/PowerDensity.json b/Common/UnitDefinitions/PowerDensity.json index 0318d9cd42..8a4d3fa962 100644 --- a/Common/UnitDefinitions/PowerDensity.json +++ b/Common/UnitDefinitions/PowerDensity.json @@ -29,8 +29,8 @@ { "SingularName": "WattPerCubicInch", "PluralName": "WattsPerCubicInch", - "FromUnitToBaseFunc": "{x} * 6.102374409473228e4", - "FromBaseToUnitFunc": "{x} / 6.102374409473228e4", + "FromUnitToBaseFunc": "{x} / 1.6387064e-5", + "FromBaseToUnitFunc": "{x} * 1.6387064e-5", "Prefixes": [ "Pico", "Nano", "Micro", "Milli", "Deci", "Deca", "Kilo", "Mega", "Giga", "Tera" ], "Localization": [ { @@ -42,8 +42,8 @@ { "SingularName": "WattPerCubicFoot", "PluralName": "WattsPerCubicFoot", - "FromUnitToBaseFunc": "{x} * 3.531466672148859e1", - "FromBaseToUnitFunc": "{x} / 3.531466672148859e1", + "FromUnitToBaseFunc": "{x} / 0.028316846592", + "FromBaseToUnitFunc": "{x} * 0.028316846592", "Prefixes": [ "Pico", "Nano", "Micro", "Milli", "Deci", "Deca", "Kilo", "Mega", "Giga", "Tera" ], "Localization": [ { diff --git a/Common/UnitDefinitions/PressureChangeRate.json b/Common/UnitDefinitions/PressureChangeRate.json index c10ba8f7fe..81de2bce94 100644 --- a/Common/UnitDefinitions/PressureChangeRate.json +++ b/Common/UnitDefinitions/PressureChangeRate.json @@ -55,8 +55,8 @@ { "SingularName": "MillimeterOfMercuryPerSecond", "PluralName": "MillimetersOfMercuryPerSecond", - "FromUnitToBaseFunc": "{x} * 133.322", - "FromBaseToUnitFunc": "{x} / 133.322", + "FromUnitToBaseFunc": "{x} * 133.322387415", + "FromBaseToUnitFunc": "{x} / 133.322387415", "Localization": [ { "Culture": "en-US", @@ -92,8 +92,8 @@ "M": "Pound", "T": "Second" }, - "FromUnitToBaseFunc": "{x} * 6.894757293168361e3", - "FromBaseToUnitFunc": "{x} / 6.894757293168361e3", + "FromUnitToBaseFunc": "{x} * 4.4482216152605 / 0.00064516", + "FromBaseToUnitFunc": "{x} * 0.00064516 / 4.4482216152605", "Prefixes": [ "Kilo", "Mega" ], "Localization": [ { @@ -116,8 +116,8 @@ "M": "Pound", "T": "Minute" }, - "FromUnitToBaseFunc": "{x} * 6.894757293168361e3 / 60", - "FromBaseToUnitFunc": "{x} / 6.894757293168361e3 * 60", + "FromUnitToBaseFunc": "{x} * (4.4482216152605 / 0.00064516) / 60", + "FromBaseToUnitFunc": "{x} * 60 / (4.4482216152605 / 0.00064516)", "Prefixes": [ "Kilo", "Mega" ], "Localization": [ { diff --git a/Common/UnitDefinitions/ReciprocalArea.json b/Common/UnitDefinitions/ReciprocalArea.json index f1ca16d012..37490de552 100644 --- a/Common/UnitDefinitions/ReciprocalArea.json +++ b/Common/UnitDefinitions/ReciprocalArea.json @@ -103,8 +103,8 @@ "BaseUnits": { "L": "Mile" }, - "FromUnitToBaseFunc": "{x} / 2.59e6", - "FromBaseToUnitFunc": "{x} * 2.59e6", + "FromUnitToBaseFunc": "{x} / (1609.344 * 1609.344)", + "FromBaseToUnitFunc": "{x} * (1609.344 * 1609.344)", "Localization": [ { "Culture": "en-US", @@ -118,8 +118,8 @@ "BaseUnits": { "L": "Yard" }, - "FromUnitToBaseFunc": "{x} / 0.836127", - "FromBaseToUnitFunc": "{x} * 0.836127", + "FromUnitToBaseFunc": "{x} / (0.9144 * 0.9144)", + "FromBaseToUnitFunc": "{x} * (0.9144 * 0.9144)", "Localization": [ { "Culture": "en-US", @@ -133,8 +133,8 @@ "BaseUnits": { "L": "Foot" }, - "FromUnitToBaseFunc": "{x} / 0.092903", - "FromBaseToUnitFunc": "{x} * 0.092903", + "FromUnitToBaseFunc": "{x} / 9.290304e-2", + "FromBaseToUnitFunc": "{x} * 9.290304e-2", "Localization": [ { "Culture": "en-US", @@ -148,8 +148,8 @@ "BaseUnits": { "L": "UsSurveyFoot" }, - "FromUnitToBaseFunc": "{x} / 0.09290341161", - "FromBaseToUnitFunc": "{x} * 0.09290341161", + "FromUnitToBaseFunc": "{x} / (1200.0 / 3937.0) / (1200.0 / 3937.0)", + "FromBaseToUnitFunc": "{x} * (1200.0 / 3937.0) * (1200.0 / 3937.0)", "Localization": [ { "Culture": "en-US", diff --git a/Common/UnitDefinitions/RotationalSpeed.json b/Common/UnitDefinitions/RotationalSpeed.json index 3b72f0ce62..b64a6569e5 100644 --- a/Common/UnitDefinitions/RotationalSpeed.json +++ b/Common/UnitDefinitions/RotationalSpeed.json @@ -58,8 +58,8 @@ { "SingularName": "RevolutionPerSecond", "PluralName": "RevolutionsPerSecond", - "FromUnitToBaseFunc": "{x} * 6.2831853072", - "FromBaseToUnitFunc": "{x} / 6.2831853072", + "FromUnitToBaseFunc": "{x} * 2 * Math.PI", + "FromBaseToUnitFunc": "{x} / (2 * Math.PI)", "Localization": [ { "Culture": "en-US", @@ -74,8 +74,8 @@ { "SingularName": "RevolutionPerMinute", "PluralName": "RevolutionsPerMinute", - "FromUnitToBaseFunc": "({x} * 6.2831853072) / 60", - "FromBaseToUnitFunc": "({x} / 6.2831853072) * 60", + "FromUnitToBaseFunc": "({x} * 2 * Math.PI) / 60", + "FromBaseToUnitFunc": "({x} / (2 * Math.PI)) * 60", "Localization": [ { "Culture": "en-US", diff --git a/Common/UnitDefinitions/RotationalStiffness.json b/Common/UnitDefinitions/RotationalStiffness.json index 02bf2d6605..a77c0f55ed 100644 --- a/Common/UnitDefinitions/RotationalStiffness.json +++ b/Common/UnitDefinitions/RotationalStiffness.json @@ -29,8 +29,8 @@ { "SingularName": "PoundForceFootPerDegrees", "PluralName": "PoundForceFeetPerDegrees", - "FromUnitToBaseFunc": "{x} * 77.6826", - "FromBaseToUnitFunc": "{x} / 77.6826", + "FromUnitToBaseFunc": "{x} * (4.4482216152605 * 0.3048 * 180 / Math.PI)", + "FromBaseToUnitFunc": "{x} / (4.4482216152605 * 0.3048 * 180 / Math.PI)", "Localization": [ { "Culture": "en-US", @@ -41,8 +41,8 @@ { "SingularName": "KilopoundForceFootPerDegrees", "PluralName": "KilopoundForceFeetPerDegrees", - "FromUnitToBaseFunc": "{x} * 77682.6", - "FromBaseToUnitFunc": "{x} / 77682.6", + "FromUnitToBaseFunc": "{x} * (4.4482216152605e3 * 0.3048 * 180 / Math.PI)", + "FromBaseToUnitFunc": "{x} / (4.4482216152605e3 * 0.3048 * 180 / Math.PI)", "Localization": [ { "Culture": "en-US", @@ -92,8 +92,8 @@ { "SingularName": "PoundForceFeetPerRadian", "PluralName": "PoundForceFeetPerRadian", - "FromUnitToBaseFunc": "{x} * 1.3558179483314", - "FromBaseToUnitFunc": "{x} / 1.3558179483314", + "FromUnitToBaseFunc": "{x} * 4.4482216152605 * 0.3048", + "FromBaseToUnitFunc": "{x} / (4.4482216152605 * 0.3048)", "Localization": [ { "Culture": "en-US", diff --git a/Common/UnitDefinitions/RotationalStiffnessPerLength.json b/Common/UnitDefinitions/RotationalStiffnessPerLength.json index 8d3e9614a0..ebfd1861d5 100644 --- a/Common/UnitDefinitions/RotationalStiffnessPerLength.json +++ b/Common/UnitDefinitions/RotationalStiffnessPerLength.json @@ -29,8 +29,8 @@ { "SingularName": "PoundForceFootPerDegreesPerFoot", "PluralName": "PoundForceFeetPerDegreesPerFeet", - "FromUnitToBaseFunc": "{x} * 254.864324570", - "FromBaseToUnitFunc": "{x} / 254.864324570", + "FromUnitToBaseFunc": "{x} * (4.4482216152605 * 180 / Math.PI)", + "FromBaseToUnitFunc": "{x} / (4.4482216152605 * 180 / Math.PI)", "Localization": [ { "Culture": "en-US", @@ -41,8 +41,8 @@ { "SingularName": "KilopoundForceFootPerDegreesPerFoot", "PluralName": "KilopoundForceFeetPerDegreesPerFeet", - "FromUnitToBaseFunc": "{x} * 254864.324570", - "FromBaseToUnitFunc": "{x} / 254864.324570", + "FromUnitToBaseFunc": "{x} * (4.4482216152605e3 * 180 / Math.PI)", + "FromBaseToUnitFunc": "{x} / (4.4482216152605e3 * 180 / Math.PI)", "Localization": [ { "Culture": "en-US", diff --git a/Common/UnitDefinitions/SpecificEnergy.json b/Common/UnitDefinitions/SpecificEnergy.json index 946d38e252..2fa10c2ccc 100644 --- a/Common/UnitDefinitions/SpecificEnergy.json +++ b/Common/UnitDefinitions/SpecificEnergy.json @@ -118,8 +118,8 @@ { "SingularName": "BtuPerPound", "PluralName": "BtuPerPound", - "FromUnitToBaseFunc": "{x} * 2326.000075362", - "FromBaseToUnitFunc": "{x} / 2326.000075362", + "FromUnitToBaseFunc": "{x} * 1055.05585262 / 0.45359237", + "FromBaseToUnitFunc": "{x} * 0.45359237 / 1055.05585262", "Localization": [ { "Culture": "en-US", diff --git a/Common/UnitDefinitions/SpecificVolume.json b/Common/UnitDefinitions/SpecificVolume.json index 9595c97ca4..aa9939832a 100644 --- a/Common/UnitDefinitions/SpecificVolume.json +++ b/Common/UnitDefinitions/SpecificVolume.json @@ -31,8 +31,8 @@ "L": "Foot", "M": "Pound" }, - "FromUnitToBaseFunc": "{x} / 16.01846353", - "FromBaseToUnitFunc": "{x} * 16.01846353", + "FromUnitToBaseFunc": "{x} * 0.028316846592 / 0.45359237", + "FromBaseToUnitFunc": "{x} * 0.45359237 / 0.028316846592", "Prefixes": [], "Localization": [ { diff --git a/Common/UnitDefinitions/SpecificWeight.json b/Common/UnitDefinitions/SpecificWeight.json index f2e24adb86..f56d545639 100644 --- a/Common/UnitDefinitions/SpecificWeight.json +++ b/Common/UnitDefinitions/SpecificWeight.json @@ -92,8 +92,8 @@ { "SingularName": "PoundForcePerCubicInch", "PluralName": "PoundsForcePerCubicInch", - "FromUnitToBaseFunc": "{x} * 2.714471375263134e5", - "FromBaseToUnitFunc": "{x} / 2.714471375263134e5", + "FromUnitToBaseFunc": "{x} * 4.4482216152605 / 1.6387064e-5", + "FromBaseToUnitFunc": "{x} * 1.6387064e-5 / 4.4482216152605", "Prefixes": [ "Kilo" ], "Localization": [ { @@ -106,8 +106,8 @@ { "SingularName": "PoundForcePerCubicFoot", "PluralName": "PoundsForcePerCubicFoot", - "FromUnitToBaseFunc": "{x} * 1.570874638462462e2", - "FromBaseToUnitFunc": "{x} / 1.570874638462462e2", + "FromUnitToBaseFunc": "{x} * 4.4482216152605 / 0.028316846592", + "FromBaseToUnitFunc": "{x} * 0.028316846592 / 4.4482216152605", "Prefixes": [ "Kilo" ], "Localization": [ { diff --git a/Common/UnitDefinitions/StandardVolumeFlow.json b/Common/UnitDefinitions/StandardVolumeFlow.json index 3e95680da9..7cf13a7837 100644 --- a/Common/UnitDefinitions/StandardVolumeFlow.json +++ b/Common/UnitDefinitions/StandardVolumeFlow.json @@ -110,8 +110,8 @@ "L": "Foot", "T": "Second" }, - "FromUnitToBaseFunc": "{x} / 35.314666721", - "FromBaseToUnitFunc": "{x} * 35.314666721", + "FromUnitToBaseFunc": "{x} * 0.028316846592", + "FromBaseToUnitFunc": "{x} / 0.028316846592", "Localization": [ { "Culture": "en-US", @@ -126,8 +126,8 @@ "L": "Foot", "T": "Minute" }, - "FromUnitToBaseFunc": "{x} / 2118.88000326", - "FromBaseToUnitFunc": "{x} * 2118.88000326", + "FromUnitToBaseFunc": "{x} * 0.028316846592 / 60", + "FromBaseToUnitFunc": "{x} / (0.028316846592 / 60)", "Localization": [ { "Culture": "en-US", @@ -142,8 +142,8 @@ "L": "Foot", "T": "Hour" }, - "FromUnitToBaseFunc": "{x} * 7.8657907199999087346816086183876e-6", - "FromBaseToUnitFunc": "{x} / 7.8657907199999087346816086183876e-6", + "FromUnitToBaseFunc": "{x} * 0.028316846592 / 3600", + "FromBaseToUnitFunc": "{x} / (0.028316846592 / 3600)", "Localization": [ { "Culture": "en-US", diff --git a/Common/UnitDefinitions/ThermalConductivity.json b/Common/UnitDefinitions/ThermalConductivity.json index 8cbff91577..c5f30282b8 100644 --- a/Common/UnitDefinitions/ThermalConductivity.json +++ b/Common/UnitDefinitions/ThermalConductivity.json @@ -31,8 +31,8 @@ { "SingularName": "BtuPerHourFootFahrenheit", "PluralName": "BtusPerHourFootFahrenheit", - "FromUnitToBaseFunc": "{x} * 1.73073467", - "FromBaseToUnitFunc": "{x} / 1.73073467", + "FromUnitToBaseFunc": "{x} * ((1055.05585262 / (0.3048 * 3600)) * 1.8)", + "FromBaseToUnitFunc": "{x} / ((1055.05585262 / (0.3048 * 3600)) * 1.8)", "Localization": [ { "Culture": "en-US", diff --git a/Common/UnitDefinitions/Torque.json b/Common/UnitDefinitions/Torque.json index 53013a31ef..d19cebd6ad 100644 --- a/Common/UnitDefinitions/Torque.json +++ b/Common/UnitDefinitions/Torque.json @@ -59,8 +59,8 @@ { "SingularName": "PoundalFoot", "PluralName": "PoundalFeet", - "FromUnitToBaseFunc": "{x} * 4.21401100938048e-2", - "FromBaseToUnitFunc": "{x} / 4.21401100938048e-2", + "FromUnitToBaseFunc": "{x} * 0.138254954376 * 0.3048", + "FromBaseToUnitFunc": "{x} / (0.138254954376 * 0.3048)", "Localization": [ { "Culture": "en-US", @@ -71,8 +71,8 @@ { "SingularName": "PoundForceInch", "PluralName": "PoundForceInches", - "FromUnitToBaseFunc": "{x} * 1.129848290276167e-1", - "FromBaseToUnitFunc": "{x} / 1.129848290276167e-1", + "FromUnitToBaseFunc": "{x} * 4.4482216152605 * 2.54e-2", + "FromBaseToUnitFunc": "{x} / (4.4482216152605 * 2.54e-2)", "Prefixes": [ "Kilo", "Mega" ], "Localization": [ { @@ -85,8 +85,8 @@ { "SingularName": "PoundForceFoot", "PluralName": "PoundForceFeet", - "FromUnitToBaseFunc": "{x} * 1.3558179483314", - "FromBaseToUnitFunc": "{x} / 1.3558179483314", + "FromUnitToBaseFunc": "{x} * 4.4482216152605 * 0.3048", + "FromBaseToUnitFunc": "{x} / (4.4482216152605 * 0.3048)", "Prefixes": [ "Kilo", "Mega" ], "Localization": [ { diff --git a/Common/UnitDefinitions/Volume.json b/Common/UnitDefinitions/Volume.json index 85666dbf34..6abde4c0d0 100644 --- a/Common/UnitDefinitions/Volume.json +++ b/Common/UnitDefinitions/Volume.json @@ -166,8 +166,10 @@ "BaseUnits": { "L": "Mile" }, - "FromUnitToBaseFunc": "{x} * 4.16818182544058e9", - "FromBaseToUnitFunc": "{x} / 4.16818182544058e9", + "XmlDocSummary": "A cubic mile (abbreviation: cu mi or mi3) is an imperial and US customary (non-SI non-metric) unit of volume, used in the United States, Canada and the United Kingdom. It is defined as the volume of a cube with sides of 1 mile (63360 inches, 5280 feet, 1760 yards or ~1.609 kilometres) in length.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Cubic_mile", + "FromUnitToBaseFunc": "{x} * 4.168181825440579584e9", + "FromBaseToUnitFunc": "{x} / 4.168181825440579584e9", "Localization": [ { "Culture": "en-US", @@ -185,8 +187,10 @@ "BaseUnits": { "L": "Yard" }, - "FromUnitToBaseFunc": "{x} * 0.764554858", - "FromBaseToUnitFunc": "{x} / 0.764554858", + "XmlDocSummary": "A cubic yard is an Imperial / U.S. customary (non-SI non-metric) unit of volume, used in Canada and the United States. It is defined as the volume of a cube with sides of 1 yard (3 feet, 36 inches, 0.9144 meters) in length.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Cubic_yard", + "FromUnitToBaseFunc": "{x} * 0.764554857984", + "FromBaseToUnitFunc": "{x} / 0.764554857984", "Localization": [ { "Culture": "en-US", @@ -204,8 +208,10 @@ "BaseUnits": { "L": "Foot" }, - "FromUnitToBaseFunc": "{x} * 2.8316846592e-2", - "FromBaseToUnitFunc": "{x} / 2.8316846592e-2", + "XmlDocSummary": "The cubic foot (symbol ft3 or cu ft) is an imperial and US customary (non-metric) unit of volume, used in the United States and the United Kingdom. It is defined as the volume of a cube with sides of one foot (0.3048 m) in length.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Cubic_foot", + "FromUnitToBaseFunc": "{x} * 0.028316846592", + "FromBaseToUnitFunc": "{x} / 0.028316846592", "Prefixes": [ "Hecto", "Kilo", "Mega" ], "Localization": [ { @@ -224,6 +230,8 @@ "BaseUnits": { "L": "Inch" }, + "XmlDocSummary": "The cubic inch (symbol in3) is a unit of volume in the Imperial units and United States customary units systems. It is the volume of a cube with each of its three dimensions (length, width, and height) being one inch long which is equivalent to 1/231 of a US gallon.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Cubic_yard", "FromUnitToBaseFunc": "{x} * 1.6387064e-5", "FromBaseToUnitFunc": "{x} / 1.6387064e-5", "Localization": [ @@ -240,10 +248,10 @@ { "SingularName": "ImperialGallon", "PluralName": "ImperialGallons", - "FromUnitToBaseFunc": "{x} * 0.00454609", - "FromBaseToUnitFunc": "{x} / 0.00454609", "XmlDocSummary": "The British imperial gallon (frequently called simply \"gallon\") is defined as exactly 4.54609 litres.", "XmlDocRemarks": "https://en.wikipedia.org/wiki/Gallon#Imperial_gallon", + "FromUnitToBaseFunc": "{x} * 0.00454609", + "FromBaseToUnitFunc": "{x} / 0.00454609", "Prefixes": [ "Kilo", "Mega" ], "Localization": [ { @@ -259,8 +267,10 @@ { "SingularName": "ImperialOunce", "PluralName": "ImperialOunces", - "FromUnitToBaseFunc": "{x} * 2.8413062499962901241875439064617e-5", - "FromBaseToUnitFunc": "{x} / 2.8413062499962901241875439064617e-5", + "XmlDocSummary": "An imperial fluid ounce is 1⁄20 of an imperial pint, 1⁄160 of an imperial gallon or exactly 28.4130625 mL.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Fluid_ounce", + "FromUnitToBaseFunc": "{x} * 2.84130625e-5", + "FromBaseToUnitFunc": "{x} / 2.84130625e-5", "Localization": [ { "Culture": "en-US", @@ -275,10 +285,10 @@ { "SingularName": "UsGallon", "PluralName": "UsGallons", - "FromUnitToBaseFunc": "{x} * 0.003785411784", - "FromBaseToUnitFunc": "{x} / 0.003785411784", "XmlDocSummary": "The US liquid gallon (frequently called simply \"gallon\") is legally defined as 231 cubic inches, which is exactly 3.785411784 litres.", "XmlDocRemarks": "https://en.wikipedia.org/wiki/Gallon#US_liquid_gallon", + "FromUnitToBaseFunc": "{x} * 0.003785411784", + "FromBaseToUnitFunc": "{x} / 0.003785411784", "Prefixes": [ "Deca", "Deci", "Hecto", "Kilo", "Mega" ], "Localization": [ { @@ -294,8 +304,10 @@ { "SingularName": "UsOunce", "PluralName": "UsOunces", - "FromUnitToBaseFunc": "{x} * 2.957352956253760505068307980135e-5", - "FromBaseToUnitFunc": "{x} / 2.957352956253760505068307980135e-5", + "XmlDocSummary": "A US customary fluid ounce is 1⁄16 of a US liquid pint and 1⁄128 of a US liquid gallon or exactly 29.5735295625 mL, making it about 4.08% larger than the imperial fluid ounce.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Fluid_ounce", + "FromUnitToBaseFunc": "{x} * 2.95735295625e-5", + "FromBaseToUnitFunc": "{x} / 2.95735295625e-5", "Localization": [ { "Culture": "en-US", @@ -310,6 +322,8 @@ { "SingularName": "UsTablespoon", "PluralName": "UsTablespoons", + "XmlDocSummary": "The traditional U.S. interpretation of the tablespoon as a unit of volume is: 1 US tablespoon = 4 fluid drams, or 3 teaspoons or 1/2 US fluid ounce (≈ 14.8 ml)", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Tablespoon#United_States", "FromUnitToBaseFunc": "{x} * 1.478676478125e-5", "FromBaseToUnitFunc": "{x} / 1.478676478125e-5", "Localization": [ @@ -330,6 +344,8 @@ { "SingularName": "AuTablespoon", "PluralName": "AuTablespoons", + "XmlDocSummary": "In Australia, the definition of the tablespoon is 20 ml (0.70 imp fl oz).", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Tablespoon#Australia", "FromUnitToBaseFunc": "{x} * 2e-5", "FromBaseToUnitFunc": "{x} / 2e-5", "Localization": [ @@ -350,6 +366,8 @@ { "SingularName": "UkTablespoon", "PluralName": "UkTablespoons", + "XmlDocSummary": "In nutrition labeling in the U.S. and the U.K., a tablespoon is defined as 15 ml (0.51 US fl oz). In Australia, the definition of the tablespoon is 20 ml (0.70 imp fl oz).", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Tablespoon#International", "FromUnitToBaseFunc": "{x} * 1.5e-5", "FromBaseToUnitFunc": "{x} / 1.5e-5", "Localization": [ @@ -370,6 +388,8 @@ { "SingularName": "MetricTeaspoon", "PluralName": "MetricTeaspoons", + "XmlDocSummary": "The metric teaspoon as a unit of culinary measure is 5 ml (0.18 imp fl oz; 0.17 US fl oz),[17] equal to 5 cm3, 1⁄3 UK/Canadian metric tablespoon, or 1⁄4 Australian metric tablespoon.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Teaspoon#Metric_teaspoon", "FromUnitToBaseFunc": "{x} * 0.5e-5", "FromBaseToUnitFunc": "{x} / 0.5e-5", "Localization": [ @@ -390,6 +410,8 @@ { "SingularName": "UsTeaspoon", "PluralName": "UsTeaspoons", + "XmlDocSummary": "As a unit of culinary measure, one teaspoon in the United States is 1⁄3 tablespoon, exactly 4.92892159375 ml, 1 1⁄3 US fluid drams, 1⁄6 US fl oz, 1⁄48 US cup, 1⁄768 US liquid gallon, or 77⁄256 (0.30078125) cubic inches.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Teaspoon#United_States_customary_unit", "FromUnitToBaseFunc": "{x} * 4.92892159375e-6", "FromBaseToUnitFunc": "{x} / 4.92892159375e-6", "Localization": [ @@ -410,6 +432,8 @@ { "SingularName": "MetricCup", "PluralName": "MetricCups", + "XmlDocSummary": "Australia, Canada, New Zealand, and some other members of the Commonwealth of Nations, being former British colonies that have since metricated, employ a metric cup of 250 millilitres. Although derived from the metric system, it is not an SI unit.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Cup_(unit)#Metric_cup", "FromUnitToBaseFunc": "{x} * 0.00025", "FromBaseToUnitFunc": "{x} / 0.00025", "Localization": [ @@ -422,6 +446,8 @@ { "SingularName": "UsCustomaryCup", "PluralName": "UsCustomaryCups", + "XmlDocSummary": "In the United States, the customary cup is half of a liquid pint or 1⁄16 US customary gallon which is 236.5882365 milliliters exactly.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Cup_(unit)#Customary_cup", "FromUnitToBaseFunc": "{x} * 0.0002365882365", "FromBaseToUnitFunc": "{x} / 0.0002365882365", "Localization": [ @@ -434,6 +460,8 @@ { "SingularName": "UsLegalCup", "PluralName": "UsLegalCups", + "XmlDocSummary": "The cup currently used in the United States for nutrition labelling is defined in United States law as 240 ml.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Cup_(unit)#Legal_cup", "FromUnitToBaseFunc": "{x} * 0.00024", "FromBaseToUnitFunc": "{x} / 0.00024", "Localization": [ @@ -446,6 +474,8 @@ { "SingularName": "OilBarrel", "PluralName": "OilBarrels", + "XmlDocSummary": "In the oil industry, one barrel (unit symbol bbl) is a unit of volume used for measuring oil defined as exactly 42 US gallons, approximately 159 liters, or 35 imperial gallons.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Barrel_(unit)#Oil_barrel", "FromUnitToBaseFunc": "{x} * 0.158987294928", "FromBaseToUnitFunc": "{x} / 0.158987294928", "Localization": [ @@ -458,8 +488,10 @@ { "SingularName": "UsBeerBarrel", "PluralName": "UsBeerBarrels", - "FromUnitToBaseFunc": "{x} * 0.1173477658", - "FromBaseToUnitFunc": "{x} / 0.1173477658", + "XmlDocSummary": "Fluid barrels vary depending on what is being measured and where. In the US most fluid barrels (apart from oil) are 31.5 US gallons (26 imp gal; 119 L) (half a hogshead), but a beer barrel is 31 US gallons (26 imp gal; 117 L).", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Barrel_(unit)#Fluid_barrel_in_the_US_and_UK", + "FromUnitToBaseFunc": "{x} * 0.117347765304", + "FromBaseToUnitFunc": "{x} / 0.117347765304", "Localization": [ { "Culture": "en-US", @@ -470,6 +502,8 @@ { "SingularName": "ImperialBeerBarrel", "PluralName": "ImperialBeerBarrels", + "XmlDocSummary": "Fluid barrels vary depending on what is being measured and where. In the UK a beer barrel is 36 imperial gallons (43 US gal; ~164 L).", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Barrel_(unit)#Fluid_barrel_in_the_US_and_UK", "FromUnitToBaseFunc": "{x} * 0.16365924", "FromBaseToUnitFunc": "{x} / 0.16365924", "Localization": [ @@ -482,6 +516,8 @@ { "SingularName": "UsQuart", "PluralName": "UsQuarts", + "XmlDocSummary": "The US liquid quart equals 57.75 cubic inches, which is exactly equal to 0.946352946 L.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Quart#US_liquid_quart", "FromUnitToBaseFunc": "{x} * 9.46352946e-4", "FromBaseToUnitFunc": "{x} / 9.46352946e-4", "Localization": [ @@ -494,6 +530,8 @@ { "SingularName": "ImperialQuart", "PluralName": "ImperialQuarts", + "XmlDocSummary": "The imperial quart, which is used for both liquid and dry capacity, is equal to one quarter of an imperial gallon, or exactly 1.1365225 liters.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Quart#Imperial_quart", "FromUnitToBaseFunc": "{x} * 1.1365225e-3", "FromBaseToUnitFunc": "{x} / 1.1365225e-3", "Localization": [ @@ -506,6 +544,8 @@ { "SingularName": "UsPint", "PluralName": "UsPints", + "XmlDocSummary": "The pint is a unit of volume or capacity in both the imperial and United States customary measurement systems. In both of those systems it is traditionally one eighth of a gallon. The British imperial pint is about 20% larger than the American pint because the two systems are defined differently.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Pint#US_liquid_pint", "FromUnitToBaseFunc": "{x} * 4.73176473e-4", "FromBaseToUnitFunc": "{x} / 4.73176473e-4", "Localization": [ @@ -518,8 +558,10 @@ { "SingularName": "AcreFoot", "PluralName": "AcreFeet", - "FromUnitToBaseFunc": "{x} / 0.000810714", - "FromBaseToUnitFunc": "{x} * 0.000810714", + "XmlDocSummary": "An acre-foot is 43,560 cubic feet (~1,233.5 m3).", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Acre-foot", + "FromUnitToBaseFunc": "{x} * 1233.48183754752", + "FromBaseToUnitFunc": "{x} / 1233.48183754752", "Localization": [ { "Culture": "en-US", @@ -530,6 +572,8 @@ { "SingularName": "ImperialPint", "PluralName": "ImperialPints", + "XmlDocSummary": "The pint is a unit of volume or capacity in both the imperial and United States customary measurement systems. In both of those systems it is traditionally one eighth of a gallon. The British imperial pint is about 20% larger than the American pint because the two systems are defined differently.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Pint#Imperial_pint", "FromUnitToBaseFunc": "{x} * 5.6826125e-4", "FromBaseToUnitFunc": "{x} / 5.6826125e-4", "Localization": [ @@ -542,8 +586,10 @@ { "SingularName": "BoardFoot", "PluralName": "BoardFeet", - "FromUnitToBaseFunc": "{x} * 2.3597372158e-3", - "FromBaseToUnitFunc": "{x} / 2.3597372158e-3", + "XmlDocSummary": "The board foot or board-foot is a unit of measurement for the volume of lumber in the United States and Canada. It equals the volume of a board that is one-foot (305 mm) in length, one-foot (305 mm) in width, and one-inch (25.4 mm) in thickness.", + "XmlDocRemarks": "https://en.wikipedia.org/wiki/Board_foot", + "FromUnitToBaseFunc": "{x} * (0.028316846592 / 12)", + "FromBaseToUnitFunc": "{x} / (0.028316846592 / 12)", "Localization": [ { "Culture": "en-US", diff --git a/Common/UnitDefinitions/VolumeFlow.json b/Common/UnitDefinitions/VolumeFlow.json index 78c99179d8..0df447b2b5 100644 --- a/Common/UnitDefinitions/VolumeFlow.json +++ b/Common/UnitDefinitions/VolumeFlow.json @@ -90,8 +90,8 @@ "L": "Foot", "T": "Second" }, - "FromUnitToBaseFunc": "{x} / 35.314666721", - "FromBaseToUnitFunc": "{x} * 35.314666721", + "FromUnitToBaseFunc": "{x} * 0.028316846592", + "FromBaseToUnitFunc": "{x} / 0.028316846592", "Localization": [ { "Culture": "en-US", @@ -106,8 +106,8 @@ "L": "Foot", "T": "Minute" }, - "FromUnitToBaseFunc": "{x} / 2118.88000326", - "FromBaseToUnitFunc": "{x} * 2118.88000326", + "FromUnitToBaseFunc": "{x} * 0.028316846592 / 60", + "FromBaseToUnitFunc": "{x} / (0.028316846592 / 60)", "Localization": [ { "Culture": "en-US", @@ -122,8 +122,8 @@ "L": "Foot", "T": "Hour" }, - "FromUnitToBaseFunc": "{x} * 7.8657907199999087346816086183876e-6", - "FromBaseToUnitFunc": "{x} / 7.8657907199999087346816086183876e-6", + "FromUnitToBaseFunc": "{x} * 0.028316846592 / 3600", + "FromBaseToUnitFunc": "{x} / (0.028316846592 / 3600)", "Localization": [ { "Culture": "en-US", @@ -150,8 +150,8 @@ "L": "Yard", "T": "Minute" }, - "FromUnitToBaseFunc": "{x} * 0.0127425809664", - "FromBaseToUnitFunc": "{x} / 0.0127425809664", + "FromUnitToBaseFunc": "{x} * 0.764554857984 / 60", + "FromBaseToUnitFunc": "{x} / (0.764554857984 / 60)", "Localization": [ { "Culture": "en-US", @@ -166,8 +166,8 @@ "L": "Yard", "T": "Hour" }, - "FromUnitToBaseFunc": "{x} * 2.1237634944E-4", - "FromBaseToUnitFunc": "{x} / 2.1237634944E-4", + "FromUnitToBaseFunc": "{x} * 0.764554857984 / 3600", + "FromBaseToUnitFunc": "{x} / (0.764554857984 / 3600)", "Localization": [ { "Culture": "en-US", @@ -182,8 +182,8 @@ "L": "Yard", "T": "Day" }, - "FromUnitToBaseFunc": "{x} / 113007", - "FromBaseToUnitFunc": "{x} * 113007", + "FromUnitToBaseFunc": "{x} * 0.764554857984 / 86400", + "FromBaseToUnitFunc": "{x} / (0.764554857984 / 86400)", "Localization": [ { "Culture": "en-US", @@ -194,8 +194,8 @@ { "SingularName": "MillionUsGallonPerDay", "PluralName": "MillionUsGallonsPerDay", - "FromUnitToBaseFunc": "{x} / 22.824465227", - "FromBaseToUnitFunc": "{x} * 22.824465227", + "FromUnitToBaseFunc": "{x} * 1e6 * 0.003785411784 / 86400", + "FromBaseToUnitFunc": "{x} / (1e6 * 0.003785411784 / 86400)", "Localization": [ { "Culture": "en-US", @@ -206,8 +206,8 @@ { "SingularName": "UsGallonPerDay", "PluralName": "UsGallonsPerDay", - "FromUnitToBaseFunc": "{x} / 22824465.227", - "FromBaseToUnitFunc": "{x} * 22824465.227", + "FromUnitToBaseFunc": "{x} * 0.003785411784 / 86400", + "FromBaseToUnitFunc": "{x} / (0.003785411784 / 86400)", "Prefixes": [ "Mega" ], "Localization": [ { @@ -236,8 +236,8 @@ { "SingularName": "LiterPerMinute", "PluralName": "LitersPerMinute", - "FromUnitToBaseFunc": "{x} / 60000.00000", - "FromBaseToUnitFunc": "{x} * 60000.00000", + "FromUnitToBaseFunc": "{x} / (1000 * 60)", + "FromBaseToUnitFunc": "{x} * (1000 * 60)", "Prefixes": [ "Nano", "Micro", "Milli", "Centi", "Deci", "Deca", "Hecto", "Kilo", "Mega" ], "Localization": [ { @@ -253,8 +253,8 @@ { "SingularName": "LiterPerHour", "PluralName": "LitersPerHour", - "FromUnitToBaseFunc": "{x} / 3600000.000", - "FromBaseToUnitFunc": "{x} * 3600000.000", + "FromUnitToBaseFunc": "{x} / (1000 * 3600)", + "FromBaseToUnitFunc": "{x} * (1000 * 3600)", "Prefixes": [ "Nano", "Micro", "Milli", "Centi", "Deci", "Deca", "Hecto", "Kilo", "Mega" ], "Localization": [ { @@ -270,8 +270,8 @@ { "SingularName": "LiterPerDay", "PluralName": "LitersPerDay", - "FromUnitToBaseFunc": "{x} / 86400000", - "FromBaseToUnitFunc": "{x} * 86400000", + "FromUnitToBaseFunc": "{x} / (1000 * 86400)", + "FromBaseToUnitFunc": "{x} * (1000 * 86400)", "Prefixes": [ "Nano", "Micro", "Milli", "Centi", "Deci", "Deca", "Hecto", "Kilo", "Mega" ], "Localization": [ { @@ -283,8 +283,8 @@ { "SingularName": "UsGallonPerSecond", "PluralName": "UsGallonsPerSecond", - "FromUnitToBaseFunc": "{x} / 264.1720523581484", - "FromBaseToUnitFunc": "{x} * 264.1720523581484", + "FromUnitToBaseFunc": "{x} * 0.003785411784", + "FromBaseToUnitFunc": "{x} / 0.003785411784", "Localization": [ { "Culture": "en-US", @@ -295,8 +295,8 @@ { "SingularName": "UsGallonPerMinute", "PluralName": "UsGallonsPerMinute", - "FromUnitToBaseFunc": "{x} / 15850.323141489", - "FromBaseToUnitFunc": "{x} * 15850.323141489", + "FromUnitToBaseFunc": "{x} * 0.003785411784 / 60", + "FromBaseToUnitFunc": "{x} / (0.003785411784 / 60)", "Localization": [ { "Culture": "en-US", @@ -307,8 +307,8 @@ { "SingularName": "UkGallonPerDay", "PluralName": "UkGallonsPerDay", - "FromUnitToBaseFunc": "{x} / 19005304", - "FromBaseToUnitFunc": "{x} * 19005304", + "FromUnitToBaseFunc": "{x} * 0.00454609 / 86400", + "FromBaseToUnitFunc": "{x} / (0.00454609 / 86400)", "Prefixes": [ "Mega" ], "Localization": [ { @@ -320,8 +320,8 @@ { "SingularName": "UkGallonPerHour", "PluralName": "UkGallonsPerHour", - "FromUnitToBaseFunc": "{x} / 791887.667", - "FromBaseToUnitFunc": "{x} * 791887.667", + "FromUnitToBaseFunc": "{x} * 0.00454609 / 3600", + "FromBaseToUnitFunc": "{x} / (0.00454609 / 3600)", "Localization": [ { "Culture": "en-US", @@ -332,8 +332,8 @@ { "SingularName": "UkGallonPerMinute", "PluralName": "UkGallonsPerMinute", - "FromUnitToBaseFunc": "{x} / 13198.2", - "FromBaseToUnitFunc": "{x} * 13198.2", + "FromUnitToBaseFunc": "{x} * 0.00454609 / 60", + "FromBaseToUnitFunc": "{x} / (0.00454609 / 60)", "Localization": [ { "Culture": "en-US", @@ -344,8 +344,8 @@ { "SingularName": "UkGallonPerSecond", "PluralName": "UkGallonsPerSecond", - "FromUnitToBaseFunc": "{x} / 219.969", - "FromBaseToUnitFunc": "{x} * 219.969", + "FromUnitToBaseFunc": "{x} * 0.00454609", + "FromBaseToUnitFunc": "{x} / 0.00454609", "Prefixes": [ "Mega" ], "Localization": [ { @@ -357,8 +357,8 @@ { "SingularName": "KilousGallonPerMinute", "PluralName": "KilousGallonsPerMinute", - "FromUnitToBaseFunc": "{x} / 15.850323141489", - "FromBaseToUnitFunc": "{x} * 15.850323141489", + "FromUnitToBaseFunc": "{x} * 1000 * 0.003785411784 / 60", + "FromBaseToUnitFunc": "{x} / (1000 * 0.003785411784 / 60)", "Localization": [ { "Culture": "en-US", @@ -369,8 +369,8 @@ { "SingularName": "UsGallonPerHour", "PluralName": "UsGallonsPerHour", - "FromUnitToBaseFunc": "{x} / 951019.38848933424", - "FromBaseToUnitFunc": "{x} * 951019.38848933424", + "FromUnitToBaseFunc": "{x} * 0.003785411784 / 3600", + "FromBaseToUnitFunc": "{x} / (0.003785411784 / 3600)", "Localization": [ { "Culture": "en-US", @@ -401,8 +401,8 @@ { "SingularName": "OilBarrelPerDay", "PluralName": "OilBarrelsPerDay", - "FromUnitToBaseFunc": "{x} * 1.8401307283333333333333333333333e-6", - "FromBaseToUnitFunc": "{x} / 1.8401307283333333333333333333333e-6", + "FromUnitToBaseFunc": "{x} * 0.158987294928 / 86400", + "FromBaseToUnitFunc": "{x} / (0.158987294928 / 86400)", "Localization": [ { "Culture": "en-US", @@ -413,8 +413,8 @@ { "SingularName": "OilBarrelPerMinute", "PluralName": "OilBarrelsPerMinute", - "FromUnitToBaseFunc": "{x} * 2.64978825e-3", - "FromBaseToUnitFunc": "{x} / 2.64978825e-3", + "FromUnitToBaseFunc": "{x} * 0.158987294928 / 60", + "FromBaseToUnitFunc": "{x} / (0.158987294928 / 60)", "Localization": [ { "Culture": "en-US", @@ -425,8 +425,8 @@ { "SingularName": "OilBarrelPerHour", "PluralName": "OilBarrelsPerHour", - "FromUnitToBaseFunc": "{x} * 4.41631375e-5", - "FromBaseToUnitFunc": "{x} / 4.41631375e-5", + "FromUnitToBaseFunc": "{x} * 0.158987294928 / 3600", + "FromBaseToUnitFunc": "{x} / (0.158987294928 / 3600)", "Localization": [ { "Culture": "en-US", @@ -437,8 +437,8 @@ { "SingularName": "OilBarrelPerSecond", "PluralName": "OilBarrelsPerSecond", - "FromUnitToBaseFunc": "{x} / 6.28981", - "FromBaseToUnitFunc": "{x} * 6.28981", + "FromUnitToBaseFunc": "{x} * 0.158987294928", + "FromBaseToUnitFunc": "{x} / 0.158987294928", "Localization": [ { "Culture": "en-US", @@ -469,8 +469,8 @@ { "SingularName": "AcreFootPerSecond", "PluralName": "AcreFeetPerSecond", - "FromUnitToBaseFunc": "{x} / 0.000810713194", - "FromBaseToUnitFunc": "{x} * 0.000810713194", + "FromUnitToBaseFunc": "{x} * 1233.48183754752", + "FromBaseToUnitFunc": "{x} / 1233.48183754752", "Localization": [ { "Culture": "en-US", @@ -481,8 +481,8 @@ { "SingularName": "AcreFootPerMinute", "PluralName": "AcreFeetPerMinute", - "FromUnitToBaseFunc": "{x} / 0.0486427916", - "FromBaseToUnitFunc": "{x} * 0.0486427916", + "FromUnitToBaseFunc": "{x} * 1233.48183754752 / 60", + "FromBaseToUnitFunc": "{x} / (1233.48183754752 / 60)", "Localization": [ { "Culture": "en-US", @@ -493,8 +493,8 @@ { "SingularName": "AcreFootPerHour", "PluralName": "AcreFeetPerHour", - "FromUnitToBaseFunc": "{x} / 2.91857", - "FromBaseToUnitFunc": "{x} * 2.91857", + "FromUnitToBaseFunc": "{x} * 1233.48183754752 / 3600", + "FromBaseToUnitFunc": "{x} / (1233.48183754752 / 3600)", "Localization": [ { "Culture": "en-US", @@ -505,8 +505,8 @@ { "SingularName": "AcreFootPerDay", "PluralName": "AcreFeetPerDay", - "FromUnitToBaseFunc": "{x} / 70.0457", - "FromBaseToUnitFunc": "{x} * 70.0457", + "FromUnitToBaseFunc": "{x} * 1233.48183754752 / 86400", + "FromBaseToUnitFunc": "{x} / (1233.48183754752 / 86400)", "Localization": [ { "Culture": "en-US", @@ -521,8 +521,8 @@ "L": "Centimeter", "T": "Minute" }, - "FromUnitToBaseFunc": "{x} * 1.6666666666667e-8", - "FromBaseToUnitFunc": "{x} / 1.6666666666667e-8", + "FromUnitToBaseFunc": "{x} * 1e-6 / 60", + "FromBaseToUnitFunc": "{x} / (1e-6 / 60)", "Localization": [ { "Culture": "en-US", diff --git a/Common/UnitDefinitions/VolumeFlowPerArea.json b/Common/UnitDefinitions/VolumeFlowPerArea.json index 0e015027d0..4ca48a9994 100644 --- a/Common/UnitDefinitions/VolumeFlowPerArea.json +++ b/Common/UnitDefinitions/VolumeFlowPerArea.json @@ -31,8 +31,8 @@ "T": "Minute" }, - "FromUnitToBaseFunc": "{x} / 196.850394", - "FromBaseToUnitFunc": "{x} * 196.850394", + "FromUnitToBaseFunc": "{x} * (0.028316846592 / 60) / 9.290304e-2", + "FromBaseToUnitFunc": "{x} * 9.290304e-2 / (0.028316846592 / 60)", "Localization": [ { "Culture": "en-US", diff --git a/Common/UnitDefinitions/VolumePerLength.json b/Common/UnitDefinitions/VolumePerLength.json index c436ca013f..96c4e0e5c1 100644 --- a/Common/UnitDefinitions/VolumePerLength.json +++ b/Common/UnitDefinitions/VolumePerLength.json @@ -67,8 +67,8 @@ { "SingularName": "OilBarrelPerFoot", "PluralName": "OilBarrelsPerFoot", - "FromUnitToBaseFunc": "{x} / 1.91713408", - "FromBaseToUnitFunc": "{x} * 1.91713408", + "FromUnitToBaseFunc": "{x} * 0.158987294928 / 0.3048", + "FromBaseToUnitFunc": "{x} * 0.3048 / 0.158987294928", "Prefixes": [], "Localization": [ { @@ -80,8 +80,8 @@ { "SingularName": "CubicYardPerFoot", "PluralName": "CubicYardsPerFoot", - "FromUnitToBaseFunc": "{x} * 2.50838208", - "FromBaseToUnitFunc": "{x} / 2.50838208", + "FromUnitToBaseFunc": "{x} * 0.764554857984 / 0.3048", + "FromBaseToUnitFunc": "{x} * 0.3048 / 0.764554857984", "Localization": [ { "Culture": "en-US", @@ -92,8 +92,8 @@ { "SingularName": "CubicYardPerUsSurveyFoot", "PluralName": "CubicYardsPerUsSurveyFoot", - "FromUnitToBaseFunc": "{x} * 2.50837706323584", - "FromBaseToUnitFunc": "{x} / 2.50837706323584", + "FromUnitToBaseFunc": "{x} * 0.764554857984 * 3937 / 1200", + "FromBaseToUnitFunc": "{x} * 1200 / (0.764554857984 * 3937)", "Localization": [ { "Culture": "en-US", @@ -104,8 +104,8 @@ { "SingularName": "UsGallonPerMile", "PluralName": "UsGallonsPerMile", - "FromUnitToBaseFunc": "{x} / (1000 * 1609.344 / 3.785411784)", - "FromBaseToUnitFunc": "{x} * (1000 * 1609.344 / 3.785411784)", + "FromUnitToBaseFunc": "{x} * 0.003785411784 / 1609.344", + "FromBaseToUnitFunc": "{x} * 1609.344 / 0.003785411784", "Localization": [ { "Culture": "en-US", @@ -116,8 +116,8 @@ { "SingularName": "ImperialGallonPerMile", "PluralName": "ImperialGallonsPerMile", - "FromUnitToBaseFunc": "{x} / (1000 * 1609.344 / 4.54609)", - "FromBaseToUnitFunc": "{x} * (1000 * 1609.344 / 4.54609)", + "FromUnitToBaseFunc": "{x} * 0.00454609 / 1609.344", + "FromBaseToUnitFunc": "{x} * 1609.344 / 0.00454609", "Localization": [ { "Culture": "en-US", diff --git a/Common/UnitDefinitions/WarpingMomentOfInertia.json b/Common/UnitDefinitions/WarpingMomentOfInertia.json index b8245dc80b..9a76ffe7d5 100644 --- a/Common/UnitDefinitions/WarpingMomentOfInertia.json +++ b/Common/UnitDefinitions/WarpingMomentOfInertia.json @@ -72,8 +72,8 @@ "BaseUnits": { "L": "Foot" }, - "FromUnitToBaseFunc": "{x} * Math.Pow(0.3048, 6)", - "FromBaseToUnitFunc": "{x} / Math.Pow(0.3048, 6)", + "FromUnitToBaseFunc": "{x} * 0.000801843800914862014464", + "FromBaseToUnitFunc": "{x} / 0.000801843800914862014464", "Localization": [ { "Culture": "en-US", @@ -87,8 +87,8 @@ "BaseUnits": { "L": "Inch" }, - "FromUnitToBaseFunc": "{x} * Math.Pow(2.54e-2, 6)", - "FromBaseToUnitFunc": "{x} / Math.Pow(2.54e-2, 6)", + "FromUnitToBaseFunc": "{x} * 0.000000000268535866540096", + "FromBaseToUnitFunc": "{x} / 0.000000000268535866540096", "Localization": [ { "Culture": "en-US", diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Acceleration.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Acceleration.g.cs index b57b47d676..7bf91533ff 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Acceleration.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Acceleration.g.cs @@ -267,9 +267,9 @@ private double GetValueInBaseUnit() AccelerationUnit.FootPerSecondSquared => _value * 0.304800, AccelerationUnit.InchPerSecondSquared => _value * 0.0254, AccelerationUnit.KilometerPerSecondSquared => (_value) * 1e3d, - AccelerationUnit.KnotPerHour => _value * 0.5144444444444 / 3600, - AccelerationUnit.KnotPerMinute => _value * 0.5144444444444 / 60, - AccelerationUnit.KnotPerSecond => _value * 0.5144444444444, + AccelerationUnit.KnotPerHour => _value * (1852.0 / 3600.0) / 3600, + AccelerationUnit.KnotPerMinute => _value * (1852.0 / 3600.0) / 60, + AccelerationUnit.KnotPerSecond => _value * (1852.0 / 3600.0), AccelerationUnit.MeterPerSecondSquared => _value, AccelerationUnit.MicrometerPerSecondSquared => (_value) * 1e-6d, AccelerationUnit.MillimeterPerSecondSquared => (_value) * 1e-3d, @@ -294,9 +294,9 @@ private double GetValueAs(AccelerationUnit unit) AccelerationUnit.FootPerSecondSquared => baseUnitValue / 0.304800, AccelerationUnit.InchPerSecondSquared => baseUnitValue / 0.0254, AccelerationUnit.KilometerPerSecondSquared => (baseUnitValue) / 1e3d, - AccelerationUnit.KnotPerHour => baseUnitValue / 0.5144444444444 * 3600, - AccelerationUnit.KnotPerMinute => baseUnitValue / 0.5144444444444 * 60, - AccelerationUnit.KnotPerSecond => baseUnitValue / 0.5144444444444, + AccelerationUnit.KnotPerHour => baseUnitValue * 3600 / (1852.0 / 3600.0), + AccelerationUnit.KnotPerMinute => baseUnitValue * 60 / (1852.0 / 3600.0), + AccelerationUnit.KnotPerSecond => baseUnitValue / (1852.0 / 3600.0), AccelerationUnit.MeterPerSecondSquared => baseUnitValue, AccelerationUnit.MicrometerPerSecondSquared => (baseUnitValue) / 1e-6d, AccelerationUnit.MillimeterPerSecondSquared => (baseUnitValue) / 1e-3d, diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs index 5bfbfc9c87..4137957c99 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs @@ -154,7 +154,7 @@ private double GetValueInBaseUnit() { BrakeSpecificFuelConsumptionUnit.GramPerKiloWattHour => _value / 3.6e9, BrakeSpecificFuelConsumptionUnit.KilogramPerJoule => _value, - BrakeSpecificFuelConsumptionUnit.PoundPerMechanicalHorsepowerHour => _value * 1.689659410672e-7, + BrakeSpecificFuelConsumptionUnit.PoundPerMechanicalHorsepowerHour => _value * (0.45359237 / (76.0402249 * 9.80665))/3600, _ => throw new NotImplementedException($"Can not convert {Unit} to base units.") }; } @@ -170,7 +170,7 @@ private double GetValueAs(BrakeSpecificFuelConsumptionUnit unit) { BrakeSpecificFuelConsumptionUnit.GramPerKiloWattHour => baseUnitValue * 3.6e9, BrakeSpecificFuelConsumptionUnit.KilogramPerJoule => baseUnitValue, - BrakeSpecificFuelConsumptionUnit.PoundPerMechanicalHorsepowerHour => baseUnitValue / 1.689659410672e-7, + BrakeSpecificFuelConsumptionUnit.PoundPerMechanicalHorsepowerHour => baseUnitValue * 3600 / (0.45359237 / (76.0402249 * 9.80665)), _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.") }; } diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Density.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Density.g.cs index 203736a8c3..ad290398de 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Density.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Density.g.cs @@ -695,8 +695,8 @@ private double GetValueInBaseUnit() DensityUnit.FemtogramPerLiter => (_value / 1) * 1e-15d, DensityUnit.FemtogramPerMilliliter => (_value / 1e-3) * 1e-15d, DensityUnit.GramPerCubicCentimeter => _value / 1e-3, - DensityUnit.GramPerCubicFoot => _value * 0.0353146667214886, - DensityUnit.GramPerCubicInch => _value * 61.0237440947323, + DensityUnit.GramPerCubicFoot => _value * 0.001 / 0.028316846592, + DensityUnit.GramPerCubicInch => _value * 0.001 / 1.6387064e-5, DensityUnit.GramPerCubicMeter => _value / 1e3, DensityUnit.GramPerCubicMillimeter => _value / 1e-6, DensityUnit.GramPerDeciliter => _value / 1e-1, @@ -706,9 +706,9 @@ private double GetValueInBaseUnit() DensityUnit.KilogramPerCubicMeter => (_value / 1e3) * 1e3d, DensityUnit.KilogramPerCubicMillimeter => (_value / 1e-6) * 1e3d, DensityUnit.KilogramPerLiter => _value * 1e3, - DensityUnit.KilopoundPerCubicFoot => (_value / 0.062427961) * 1e3d, - DensityUnit.KilopoundPerCubicInch => (_value / 3.6127298147753e-5) * 1e3d, - DensityUnit.KilopoundPerCubicYard => (_value * (0.45359237 / 0.9144 / 0.9144 / 0.9144)) * 1e3d, + DensityUnit.KilopoundPerCubicFoot => (_value * 0.45359237 / 0.028316846592) * 1e3d, + DensityUnit.KilopoundPerCubicInch => (_value * 0.45359237 / 1.6387064e-5) * 1e3d, + DensityUnit.KilopoundPerCubicYard => (_value * 0.45359237 / 0.764554857984) * 1e3d, DensityUnit.MicrogramPerCubicMeter => (_value / 1e3) * 1e-6d, DensityUnit.MicrogramPerDeciliter => (_value / 1e-1) * 1e-6d, DensityUnit.MicrogramPerLiter => (_value / 1) * 1e-6d, @@ -723,22 +723,22 @@ private double GetValueInBaseUnit() DensityUnit.PicogramPerDeciliter => (_value / 1e-1) * 1e-12d, DensityUnit.PicogramPerLiter => (_value / 1) * 1e-12d, DensityUnit.PicogramPerMilliliter => (_value / 1e-3) * 1e-12d, - DensityUnit.PoundPerCubicCentimeter => _value / 2.204622621848775e-6, - DensityUnit.PoundPerCubicFoot => _value / 0.062427961, - DensityUnit.PoundPerCubicInch => _value / 3.6127298147753e-5, - DensityUnit.PoundPerCubicMeter => _value / 2.204622621848775, - DensityUnit.PoundPerCubicMillimeter => _value / 2.204622621848775e-9, - DensityUnit.PoundPerCubicYard => _value * (0.45359237 / 0.9144 / 0.9144 / 0.9144), - DensityUnit.PoundPerImperialGallon => _value * 9.9776398e1, - DensityUnit.PoundPerUSGallon => _value * 1.19826427e2, - DensityUnit.SlugPerCubicCentimeter => _value * 14593903, - DensityUnit.SlugPerCubicFoot => _value * 515.378818, - DensityUnit.SlugPerCubicInch => _value * 890574.60201535, - DensityUnit.SlugPerCubicMeter => _value * 14.5939, - DensityUnit.SlugPerCubicMillimeter => _value * 14593903000, + DensityUnit.PoundPerCubicCentimeter => _value * 0.45359237e6, + DensityUnit.PoundPerCubicFoot => _value * 0.45359237 / 0.028316846592, + DensityUnit.PoundPerCubicInch => _value * 0.45359237 / 1.6387064e-5, + DensityUnit.PoundPerCubicMeter => _value * 0.45359237, + DensityUnit.PoundPerCubicMillimeter => _value * 0.45359237e9, + DensityUnit.PoundPerCubicYard => _value * 0.45359237 / 0.764554857984, + DensityUnit.PoundPerImperialGallon => _value * 0.45359237 / 0.00454609, + DensityUnit.PoundPerUSGallon => _value * 0.45359237 / 0.003785411784, + DensityUnit.SlugPerCubicCentimeter => _value * 0.45359237e6 * 9.80665 / 0.3048, + DensityUnit.SlugPerCubicFoot => _value * (0.45359237 * 9.80665) / (0.3048 * 0.028316846592), + DensityUnit.SlugPerCubicInch => _value * (0.45359237 * 9.80665) / (0.3048 * 1.6387064e-5), + DensityUnit.SlugPerCubicMeter => _value * 0.45359237 * 9.80665 / 0.3048, + DensityUnit.SlugPerCubicMillimeter => _value * 0.45359237e9 * 9.80665 / 0.3048, DensityUnit.TonnePerCubicCentimeter => _value / 1e-9, - DensityUnit.TonnePerCubicFoot => _value * 3.53146667214886e4, - DensityUnit.TonnePerCubicInch => _value * 6.10237440947323e7, + DensityUnit.TonnePerCubicFoot => _value * 1000 / 0.028316846592, + DensityUnit.TonnePerCubicInch => _value * 1000 / 1.6387064e-5, DensityUnit.TonnePerCubicMeter => _value / 0.001, DensityUnit.TonnePerCubicMillimeter => _value / 1e-12, _ => throw new NotImplementedException($"Can not convert {Unit} to base units.") @@ -764,8 +764,8 @@ private double GetValueAs(DensityUnit unit) DensityUnit.FemtogramPerLiter => (baseUnitValue * 1) / 1e-15d, DensityUnit.FemtogramPerMilliliter => (baseUnitValue * 1e-3) / 1e-15d, DensityUnit.GramPerCubicCentimeter => baseUnitValue * 1e-3, - DensityUnit.GramPerCubicFoot => baseUnitValue / 0.0353146667214886, - DensityUnit.GramPerCubicInch => baseUnitValue / 61.0237440947323, + DensityUnit.GramPerCubicFoot => baseUnitValue * 0.028316846592 / 0.001, + DensityUnit.GramPerCubicInch => baseUnitValue * 1.6387064e-5 / 0.001, DensityUnit.GramPerCubicMeter => baseUnitValue * 1e3, DensityUnit.GramPerCubicMillimeter => baseUnitValue * 1e-6, DensityUnit.GramPerDeciliter => baseUnitValue * 1e-1, @@ -775,9 +775,9 @@ private double GetValueAs(DensityUnit unit) DensityUnit.KilogramPerCubicMeter => (baseUnitValue * 1e3) / 1e3d, DensityUnit.KilogramPerCubicMillimeter => (baseUnitValue * 1e-6) / 1e3d, DensityUnit.KilogramPerLiter => baseUnitValue / 1e3, - DensityUnit.KilopoundPerCubicFoot => (baseUnitValue * 0.062427961) / 1e3d, - DensityUnit.KilopoundPerCubicInch => (baseUnitValue * 3.6127298147753e-5) / 1e3d, - DensityUnit.KilopoundPerCubicYard => (baseUnitValue / (0.45359237 / 0.9144 / 0.9144 / 0.9144)) / 1e3d, + DensityUnit.KilopoundPerCubicFoot => (baseUnitValue * 0.028316846592 / 0.45359237) / 1e3d, + DensityUnit.KilopoundPerCubicInch => (baseUnitValue * 1.6387064e-5 / 0.45359237) / 1e3d, + DensityUnit.KilopoundPerCubicYard => (baseUnitValue * 0.764554857984 / 0.45359237) / 1e3d, DensityUnit.MicrogramPerCubicMeter => (baseUnitValue * 1e3) / 1e-6d, DensityUnit.MicrogramPerDeciliter => (baseUnitValue * 1e-1) / 1e-6d, DensityUnit.MicrogramPerLiter => (baseUnitValue * 1) / 1e-6d, @@ -792,22 +792,22 @@ private double GetValueAs(DensityUnit unit) DensityUnit.PicogramPerDeciliter => (baseUnitValue * 1e-1) / 1e-12d, DensityUnit.PicogramPerLiter => (baseUnitValue * 1) / 1e-12d, DensityUnit.PicogramPerMilliliter => (baseUnitValue * 1e-3) / 1e-12d, - DensityUnit.PoundPerCubicCentimeter => baseUnitValue * 2.204622621848775e-6, - DensityUnit.PoundPerCubicFoot => baseUnitValue * 0.062427961, - DensityUnit.PoundPerCubicInch => baseUnitValue * 3.6127298147753e-5, - DensityUnit.PoundPerCubicMeter => baseUnitValue * 2.204622621848775, - DensityUnit.PoundPerCubicMillimeter => baseUnitValue * 2.204622621848775e-9, - DensityUnit.PoundPerCubicYard => baseUnitValue / (0.45359237 / 0.9144 / 0.9144 / 0.9144), - DensityUnit.PoundPerImperialGallon => baseUnitValue / 9.9776398e1, - DensityUnit.PoundPerUSGallon => baseUnitValue / 1.19826427e2, - DensityUnit.SlugPerCubicCentimeter => baseUnitValue / 14593903, - DensityUnit.SlugPerCubicFoot => baseUnitValue * 0.00194032033, - DensityUnit.SlugPerCubicInch => baseUnitValue / 890574.60201535, - DensityUnit.SlugPerCubicMeter => baseUnitValue / 14.5939, - DensityUnit.SlugPerCubicMillimeter => baseUnitValue / 14593903000, + DensityUnit.PoundPerCubicCentimeter => baseUnitValue / 0.45359237e6, + DensityUnit.PoundPerCubicFoot => baseUnitValue * 0.028316846592 / 0.45359237, + DensityUnit.PoundPerCubicInch => baseUnitValue * 1.6387064e-5 / 0.45359237, + DensityUnit.PoundPerCubicMeter => baseUnitValue / 0.45359237, + DensityUnit.PoundPerCubicMillimeter => baseUnitValue / 0.45359237e9, + DensityUnit.PoundPerCubicYard => baseUnitValue * 0.764554857984 / 0.45359237, + DensityUnit.PoundPerImperialGallon => baseUnitValue * 0.00454609 / 0.45359237, + DensityUnit.PoundPerUSGallon => baseUnitValue * 0.003785411784 / 0.45359237, + DensityUnit.SlugPerCubicCentimeter => baseUnitValue * 0.3048 / (0.45359237e6 * 9.80665), + DensityUnit.SlugPerCubicFoot => baseUnitValue * (0.3048 * 0.028316846592) / (0.45359237 * 9.80665), + DensityUnit.SlugPerCubicInch => baseUnitValue * (0.3048 * 1.6387064e-5) / (0.45359237 * 9.80665), + DensityUnit.SlugPerCubicMeter => baseUnitValue * 0.3048 / (0.45359237 * 9.80665), + DensityUnit.SlugPerCubicMillimeter => baseUnitValue * 0.3048 / (0.45359237e9 * 9.80665), DensityUnit.TonnePerCubicCentimeter => baseUnitValue * 1e-9, - DensityUnit.TonnePerCubicFoot => baseUnitValue / 3.53146667214886e4, - DensityUnit.TonnePerCubicInch => baseUnitValue / 6.10237440947323e7, + DensityUnit.TonnePerCubicFoot => baseUnitValue * 0.028316846592 / 1000, + DensityUnit.TonnePerCubicInch => baseUnitValue * 1.6387064e-5 / 1000, DensityUnit.TonnePerCubicMeter => baseUnitValue * 0.001, DensityUnit.TonnePerCubicMillimeter => baseUnitValue * 1e-12, _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.") diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/DynamicViscosity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/DynamicViscosity.g.cs index 560f7d3a9c..fe4a43bac6 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/DynamicViscosity.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/DynamicViscosity.g.cs @@ -231,10 +231,10 @@ private double GetValueInBaseUnit() DynamicViscosityUnit.NewtonSecondPerMeterSquared => _value, DynamicViscosityUnit.PascalSecond => _value, DynamicViscosityUnit.Poise => _value / 10, - DynamicViscosityUnit.PoundForceSecondPerSquareFoot => _value * 4.7880258980335843e1, - DynamicViscosityUnit.PoundForceSecondPerSquareInch => _value * 6.8947572931683613e3, - DynamicViscosityUnit.PoundPerFootSecond => _value * 1.4881639, - DynamicViscosityUnit.Reyn => _value * 6.8947572931683613e3, + DynamicViscosityUnit.PoundForceSecondPerSquareFoot => _value * 4.4482216152605 / 9.290304e-2, + DynamicViscosityUnit.PoundForceSecondPerSquareInch => _value * 4.4482216152605 / 0.00064516, + DynamicViscosityUnit.PoundPerFootSecond => _value * 0.45359237 / 0.3048, + DynamicViscosityUnit.Reyn => _value * 4.4482216152605 / 0.00064516, _ => throw new NotImplementedException($"Can not convert {Unit} to base units.") }; } @@ -254,10 +254,10 @@ private double GetValueAs(DynamicViscosityUnit unit) DynamicViscosityUnit.NewtonSecondPerMeterSquared => baseUnitValue, DynamicViscosityUnit.PascalSecond => baseUnitValue, DynamicViscosityUnit.Poise => baseUnitValue * 10, - DynamicViscosityUnit.PoundForceSecondPerSquareFoot => baseUnitValue / 4.7880258980335843e1, - DynamicViscosityUnit.PoundForceSecondPerSquareInch => baseUnitValue / 6.8947572931683613e3, - DynamicViscosityUnit.PoundPerFootSecond => baseUnitValue / 1.4881639, - DynamicViscosityUnit.Reyn => baseUnitValue / 6.8947572931683613e3, + DynamicViscosityUnit.PoundForceSecondPerSquareFoot => baseUnitValue * 9.290304e-2 / 4.4482216152605, + DynamicViscosityUnit.PoundForceSecondPerSquareInch => baseUnitValue * 0.00064516 / 4.4482216152605, + DynamicViscosityUnit.PoundPerFootSecond => baseUnitValue * 0.3048 / 0.45359237, + DynamicViscosityUnit.Reyn => baseUnitValue * 0.00064516 / 4.4482216152605, _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.") }; } diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricConductivity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricConductivity.g.cs index 10aee2cf0f..746fb25558 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricConductivity.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricConductivity.g.cs @@ -188,8 +188,8 @@ private double GetValueInBaseUnit() ElectricConductivityUnit.MicrosiemensPerCentimeter => (_value * 1e2) * 1e-6d, ElectricConductivityUnit.MillisiemensPerCentimeter => (_value * 1e2) * 1e-3d, ElectricConductivityUnit.SiemensPerCentimeter => _value * 1e2, - ElectricConductivityUnit.SiemensPerFoot => _value * 3.2808398950131234, - ElectricConductivityUnit.SiemensPerInch => _value * 3.937007874015748e1, + ElectricConductivityUnit.SiemensPerFoot => _value / 0.3048, + ElectricConductivityUnit.SiemensPerInch => _value / 2.54e-2, ElectricConductivityUnit.SiemensPerMeter => _value, _ => throw new NotImplementedException($"Can not convert {Unit} to base units.") }; @@ -207,8 +207,8 @@ private double GetValueAs(ElectricConductivityUnit unit) ElectricConductivityUnit.MicrosiemensPerCentimeter => (baseUnitValue / 1e2) / 1e-6d, ElectricConductivityUnit.MillisiemensPerCentimeter => (baseUnitValue / 1e2) / 1e-3d, ElectricConductivityUnit.SiemensPerCentimeter => baseUnitValue / 1e2, - ElectricConductivityUnit.SiemensPerFoot => baseUnitValue / 3.2808398950131234, - ElectricConductivityUnit.SiemensPerInch => baseUnitValue / 3.937007874015748e1, + ElectricConductivityUnit.SiemensPerFoot => baseUnitValue * 0.3048, + ElectricConductivityUnit.SiemensPerInch => baseUnitValue * 2.54e-2, ElectricConductivityUnit.SiemensPerMeter => baseUnitValue, _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.") }; diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs index 09445c6911..865c557c2c 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs @@ -155,8 +155,8 @@ private double GetValueInBaseUnit() { return Unit switch { - ElectricCurrentDensityUnit.AmperePerSquareFoot => _value * 1.0763910416709722e1, - ElectricCurrentDensityUnit.AmperePerSquareInch => _value * 1.5500031000062000e3, + ElectricCurrentDensityUnit.AmperePerSquareFoot => _value / 9.290304e-2, + ElectricCurrentDensityUnit.AmperePerSquareInch => _value / 0.00064516, ElectricCurrentDensityUnit.AmperePerSquareMeter => _value, _ => throw new NotImplementedException($"Can not convert {Unit} to base units.") }; @@ -171,8 +171,8 @@ private double GetValueAs(ElectricCurrentDensityUnit unit) return unit switch { - ElectricCurrentDensityUnit.AmperePerSquareFoot => baseUnitValue / 1.0763910416709722e1, - ElectricCurrentDensityUnit.AmperePerSquareInch => baseUnitValue / 1.5500031000062000e3, + ElectricCurrentDensityUnit.AmperePerSquareFoot => baseUnitValue * 9.290304e-2, + ElectricCurrentDensityUnit.AmperePerSquareInch => baseUnitValue * 0.00064516, ElectricCurrentDensityUnit.AmperePerSquareMeter => baseUnitValue, _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.") }; diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs index 23382eda7e..65b51749bc 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs @@ -156,7 +156,7 @@ private double GetValueInBaseUnit() return Unit switch { ElectricSurfaceChargeDensityUnit.CoulombPerSquareCentimeter => _value * 1.0e4, - ElectricSurfaceChargeDensityUnit.CoulombPerSquareInch => _value * 1.5500031000062000e3, + ElectricSurfaceChargeDensityUnit.CoulombPerSquareInch => _value / 0.00064516, ElectricSurfaceChargeDensityUnit.CoulombPerSquareMeter => _value, _ => throw new NotImplementedException($"Can not convert {Unit} to base units.") }; @@ -172,7 +172,7 @@ private double GetValueAs(ElectricSurfaceChargeDensityUnit unit) return unit switch { ElectricSurfaceChargeDensityUnit.CoulombPerSquareCentimeter => baseUnitValue / 1.0e4, - ElectricSurfaceChargeDensityUnit.CoulombPerSquareInch => baseUnitValue / 1.5500031000062000e3, + ElectricSurfaceChargeDensityUnit.CoulombPerSquareInch => baseUnitValue * 0.00064516, ElectricSurfaceChargeDensityUnit.CoulombPerSquareMeter => baseUnitValue, _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.") }; diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Energy.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Energy.g.cs index b8c576d03b..08cdd19843 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Energy.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Energy.g.cs @@ -527,25 +527,25 @@ private double GetValueInBaseUnit() EnergyUnit.DecathermEc => (_value * 1.05505585262e8) * 1e1d, EnergyUnit.DecathermImperial => (_value * 1.05505585257348e8) * 1e1d, EnergyUnit.DecathermUs => (_value * 1.054804e8) * 1e1d, - EnergyUnit.ElectronVolt => _value * 1.602176565e-19, + EnergyUnit.ElectronVolt => _value * 1.602176634e-19, EnergyUnit.Erg => _value * 1e-7, - EnergyUnit.FootPound => _value * 1.355817948, + EnergyUnit.FootPound => _value * 1.3558179483314004, EnergyUnit.GigabritishThermalUnit => (_value * 1055.05585262) * 1e9d, - EnergyUnit.GigaelectronVolt => (_value * 1.602176565e-19) * 1e9d, + EnergyUnit.GigaelectronVolt => (_value * 1.602176634e-19) * 1e9d, EnergyUnit.Gigajoule => (_value) * 1e9d, EnergyUnit.GigawattDay => (_value * 24 * 3600d) * 1e9d, EnergyUnit.GigawattHour => (_value * 3600d) * 1e9d, - EnergyUnit.HorsepowerHour => _value * 2.6845195377e6, + EnergyUnit.HorsepowerHour => _value * 76.0402249 * 9.80665 * 3600, EnergyUnit.Joule => _value, EnergyUnit.KilobritishThermalUnit => (_value * 1055.05585262) * 1e3d, EnergyUnit.Kilocalorie => (_value * 4.184) * 1e3d, - EnergyUnit.KiloelectronVolt => (_value * 1.602176565e-19) * 1e3d, + EnergyUnit.KiloelectronVolt => (_value * 1.602176634e-19) * 1e3d, EnergyUnit.Kilojoule => (_value) * 1e3d, EnergyUnit.KilowattDay => (_value * 24 * 3600d) * 1e3d, EnergyUnit.KilowattHour => (_value * 3600d) * 1e3d, EnergyUnit.MegabritishThermalUnit => (_value * 1055.05585262) * 1e6d, EnergyUnit.Megacalorie => (_value * 4.184) * 1e6d, - EnergyUnit.MegaelectronVolt => (_value * 1.602176565e-19) * 1e6d, + EnergyUnit.MegaelectronVolt => (_value * 1.602176634e-19) * 1e6d, EnergyUnit.Megajoule => (_value) * 1e6d, EnergyUnit.MegawattDay => (_value * 24 * 3600d) * 1e6d, EnergyUnit.MegawattHour => (_value * 3600d) * 1e6d, @@ -553,7 +553,7 @@ private double GetValueInBaseUnit() EnergyUnit.Millijoule => (_value) * 1e-3d, EnergyUnit.Nanojoule => (_value) * 1e-9d, EnergyUnit.Petajoule => (_value) * 1e15d, - EnergyUnit.TeraelectronVolt => (_value * 1.602176565e-19) * 1e12d, + EnergyUnit.TeraelectronVolt => (_value * 1.602176634e-19) * 1e12d, EnergyUnit.Terajoule => (_value) * 1e12d, EnergyUnit.TerawattDay => (_value * 24 * 3600d) * 1e12d, EnergyUnit.TerawattHour => (_value * 3600d) * 1e12d, @@ -580,25 +580,25 @@ private double GetValueAs(EnergyUnit unit) EnergyUnit.DecathermEc => (baseUnitValue / 1.05505585262e8) / 1e1d, EnergyUnit.DecathermImperial => (baseUnitValue / 1.05505585257348e8) / 1e1d, EnergyUnit.DecathermUs => (baseUnitValue / 1.054804e8) / 1e1d, - EnergyUnit.ElectronVolt => baseUnitValue / 1.602176565e-19, + EnergyUnit.ElectronVolt => baseUnitValue / 1.602176634e-19, EnergyUnit.Erg => baseUnitValue / 1e-7, - EnergyUnit.FootPound => baseUnitValue / 1.355817948, + EnergyUnit.FootPound => baseUnitValue / 1.3558179483314004, EnergyUnit.GigabritishThermalUnit => (baseUnitValue / 1055.05585262) / 1e9d, - EnergyUnit.GigaelectronVolt => (baseUnitValue / 1.602176565e-19) / 1e9d, + EnergyUnit.GigaelectronVolt => (baseUnitValue / 1.602176634e-19) / 1e9d, EnergyUnit.Gigajoule => (baseUnitValue) / 1e9d, EnergyUnit.GigawattDay => (baseUnitValue / (24 * 3600d)) / 1e9d, EnergyUnit.GigawattHour => (baseUnitValue / 3600d) / 1e9d, - EnergyUnit.HorsepowerHour => baseUnitValue / 2.6845195377e6, + EnergyUnit.HorsepowerHour => baseUnitValue / (76.0402249 * 9.80665 * 3600), EnergyUnit.Joule => baseUnitValue, EnergyUnit.KilobritishThermalUnit => (baseUnitValue / 1055.05585262) / 1e3d, EnergyUnit.Kilocalorie => (baseUnitValue / 4.184) / 1e3d, - EnergyUnit.KiloelectronVolt => (baseUnitValue / 1.602176565e-19) / 1e3d, + EnergyUnit.KiloelectronVolt => (baseUnitValue / 1.602176634e-19) / 1e3d, EnergyUnit.Kilojoule => (baseUnitValue) / 1e3d, EnergyUnit.KilowattDay => (baseUnitValue / (24 * 3600d)) / 1e3d, EnergyUnit.KilowattHour => (baseUnitValue / 3600d) / 1e3d, EnergyUnit.MegabritishThermalUnit => (baseUnitValue / 1055.05585262) / 1e6d, EnergyUnit.Megacalorie => (baseUnitValue / 4.184) / 1e6d, - EnergyUnit.MegaelectronVolt => (baseUnitValue / 1.602176565e-19) / 1e6d, + EnergyUnit.MegaelectronVolt => (baseUnitValue / 1.602176634e-19) / 1e6d, EnergyUnit.Megajoule => (baseUnitValue) / 1e6d, EnergyUnit.MegawattDay => (baseUnitValue / (24 * 3600d)) / 1e6d, EnergyUnit.MegawattHour => (baseUnitValue / 3600d) / 1e6d, @@ -606,7 +606,7 @@ private double GetValueAs(EnergyUnit unit) EnergyUnit.Millijoule => (baseUnitValue) / 1e-3d, EnergyUnit.Nanojoule => (baseUnitValue) / 1e-9d, EnergyUnit.Petajoule => (baseUnitValue) / 1e15d, - EnergyUnit.TeraelectronVolt => (baseUnitValue / 1.602176565e-19) / 1e12d, + EnergyUnit.TeraelectronVolt => (baseUnitValue / 1.602176634e-19) / 1e12d, EnergyUnit.Terajoule => (baseUnitValue) / 1e12d, EnergyUnit.TerawattDay => (baseUnitValue / (24 * 3600d)) / 1e12d, EnergyUnit.TerawattHour => (baseUnitValue / 3600d) / 1e12d, diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ForceChangeRate.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ForceChangeRate.g.cs index d75dc0c5d2..a06c8d9e20 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ForceChangeRate.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ForceChangeRate.g.cs @@ -278,15 +278,15 @@ private double GetValueInBaseUnit() ForceChangeRateUnit.DecinewtonPerSecond => (_value) * 1e-1d, ForceChangeRateUnit.KilonewtonPerMinute => (_value / 60) * 1e3d, ForceChangeRateUnit.KilonewtonPerSecond => (_value) * 1e3d, - ForceChangeRateUnit.KilopoundForcePerMinute => (_value * 4.4482216152605095551842641431421 / 60) * 1e3d, - ForceChangeRateUnit.KilopoundForcePerSecond => (_value * 4.4482216152605095551842641431421) * 1e3d, + ForceChangeRateUnit.KilopoundForcePerMinute => (_value * 4.4482216152605 / 60) * 1e3d, + ForceChangeRateUnit.KilopoundForcePerSecond => (_value * 4.4482216152605) * 1e3d, ForceChangeRateUnit.MicronewtonPerSecond => (_value) * 1e-6d, ForceChangeRateUnit.MillinewtonPerSecond => (_value) * 1e-3d, ForceChangeRateUnit.NanonewtonPerSecond => (_value) * 1e-9d, ForceChangeRateUnit.NewtonPerMinute => _value / 60, ForceChangeRateUnit.NewtonPerSecond => _value, - ForceChangeRateUnit.PoundForcePerMinute => _value * 4.4482216152605095551842641431421 / 60, - ForceChangeRateUnit.PoundForcePerSecond => _value * 4.4482216152605095551842641431421, + ForceChangeRateUnit.PoundForcePerMinute => _value * 4.4482216152605 / 60, + ForceChangeRateUnit.PoundForcePerSecond => _value * 4.4482216152605, _ => throw new NotImplementedException($"Can not convert {Unit} to base units.") }; } @@ -306,15 +306,15 @@ private double GetValueAs(ForceChangeRateUnit unit) ForceChangeRateUnit.DecinewtonPerSecond => (baseUnitValue) / 1e-1d, ForceChangeRateUnit.KilonewtonPerMinute => (baseUnitValue * 60) / 1e3d, ForceChangeRateUnit.KilonewtonPerSecond => (baseUnitValue) / 1e3d, - ForceChangeRateUnit.KilopoundForcePerMinute => (baseUnitValue / 4.4482216152605095551842641431421 * 60) / 1e3d, - ForceChangeRateUnit.KilopoundForcePerSecond => (baseUnitValue / 4.4482216152605095551842641431421) / 1e3d, + ForceChangeRateUnit.KilopoundForcePerMinute => (baseUnitValue / 4.4482216152605 * 60) / 1e3d, + ForceChangeRateUnit.KilopoundForcePerSecond => (baseUnitValue / 4.4482216152605) / 1e3d, ForceChangeRateUnit.MicronewtonPerSecond => (baseUnitValue) / 1e-6d, ForceChangeRateUnit.MillinewtonPerSecond => (baseUnitValue) / 1e-3d, ForceChangeRateUnit.NanonewtonPerSecond => (baseUnitValue) / 1e-9d, ForceChangeRateUnit.NewtonPerMinute => baseUnitValue * 60, ForceChangeRateUnit.NewtonPerSecond => baseUnitValue, - ForceChangeRateUnit.PoundForcePerMinute => baseUnitValue / 4.4482216152605095551842641431421 * 60, - ForceChangeRateUnit.PoundForcePerSecond => baseUnitValue / 4.4482216152605095551842641431421, + ForceChangeRateUnit.PoundForcePerMinute => baseUnitValue / 4.4482216152605 * 60, + ForceChangeRateUnit.PoundForcePerSecond => baseUnitValue / 4.4482216152605, _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.") }; } diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ForcePerLength.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ForcePerLength.g.cs index 9b637e0866..b8e75bd9d3 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ForcePerLength.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ForcePerLength.g.cs @@ -511,14 +511,14 @@ private double GetValueInBaseUnit() ForcePerLengthUnit.DecinewtonPerCentimeter => (_value * 1e2) * 1e-1d, ForcePerLengthUnit.DecinewtonPerMeter => (_value) * 1e-1d, ForcePerLengthUnit.DecinewtonPerMillimeter => (_value * 1e3) * 1e-1d, - ForcePerLengthUnit.KilogramForcePerCentimeter => _value * 980.665002864, - ForcePerLengthUnit.KilogramForcePerMeter => _value * 9.80665002864, - ForcePerLengthUnit.KilogramForcePerMillimeter => _value * 9.80665002864e3, + ForcePerLengthUnit.KilogramForcePerCentimeter => _value * 980.665, + ForcePerLengthUnit.KilogramForcePerMeter => _value * 9.80665, + ForcePerLengthUnit.KilogramForcePerMillimeter => _value * 9.80665e3, ForcePerLengthUnit.KilonewtonPerCentimeter => (_value * 1e2) * 1e3d, ForcePerLengthUnit.KilonewtonPerMeter => (_value) * 1e3d, ForcePerLengthUnit.KilonewtonPerMillimeter => (_value * 1e3) * 1e3d, - ForcePerLengthUnit.KilopoundForcePerFoot => _value * 14593.90292, - ForcePerLengthUnit.KilopoundForcePerInch => _value * 1.75126835e5, + ForcePerLengthUnit.KilopoundForcePerFoot => _value * 4.4482216152605 / 0.3048e-3, + ForcePerLengthUnit.KilopoundForcePerInch => _value * 4.4482216152605 / 2.54e-5, ForcePerLengthUnit.MeganewtonPerCentimeter => (_value * 1e2) * 1e6d, ForcePerLengthUnit.MeganewtonPerMeter => (_value) * 1e6d, ForcePerLengthUnit.MeganewtonPerMillimeter => (_value * 1e3) * 1e6d, @@ -534,12 +534,12 @@ private double GetValueInBaseUnit() ForcePerLengthUnit.NewtonPerCentimeter => _value * 1e2, ForcePerLengthUnit.NewtonPerMeter => _value, ForcePerLengthUnit.NewtonPerMillimeter => _value * 1e3, - ForcePerLengthUnit.PoundForcePerFoot => _value * 14.59390292, - ForcePerLengthUnit.PoundForcePerInch => _value * 1.75126835e2, - ForcePerLengthUnit.PoundForcePerYard => _value * 4.864634307, - ForcePerLengthUnit.TonneForcePerCentimeter => _value * 9.80665002864e5, - ForcePerLengthUnit.TonneForcePerMeter => _value * 9.80665002864e3, - ForcePerLengthUnit.TonneForcePerMillimeter => _value * 9.80665002864e6, + ForcePerLengthUnit.PoundForcePerFoot => _value * 4.4482216152605 / 0.3048, + ForcePerLengthUnit.PoundForcePerInch => _value * 4.4482216152605 / 2.54e-2, + ForcePerLengthUnit.PoundForcePerYard => _value * 4.4482216152605 / 0.9144, + ForcePerLengthUnit.TonneForcePerCentimeter => _value * 9.80665e5, + ForcePerLengthUnit.TonneForcePerMeter => _value * 9.80665e3, + ForcePerLengthUnit.TonneForcePerMillimeter => _value * 9.80665e6, _ => throw new NotImplementedException($"Can not convert {Unit} to base units.") }; } @@ -562,14 +562,14 @@ private double GetValueAs(ForcePerLengthUnit unit) ForcePerLengthUnit.DecinewtonPerCentimeter => (baseUnitValue / 1e2) / 1e-1d, ForcePerLengthUnit.DecinewtonPerMeter => (baseUnitValue) / 1e-1d, ForcePerLengthUnit.DecinewtonPerMillimeter => (baseUnitValue / 1e3) / 1e-1d, - ForcePerLengthUnit.KilogramForcePerCentimeter => baseUnitValue / 980.665002864, - ForcePerLengthUnit.KilogramForcePerMeter => baseUnitValue / 9.80665002864, - ForcePerLengthUnit.KilogramForcePerMillimeter => baseUnitValue / 9.80665002864e3, + ForcePerLengthUnit.KilogramForcePerCentimeter => baseUnitValue / 980.665, + ForcePerLengthUnit.KilogramForcePerMeter => baseUnitValue / 9.80665, + ForcePerLengthUnit.KilogramForcePerMillimeter => baseUnitValue / 9.80665e3, ForcePerLengthUnit.KilonewtonPerCentimeter => (baseUnitValue / 1e2) / 1e3d, ForcePerLengthUnit.KilonewtonPerMeter => (baseUnitValue) / 1e3d, ForcePerLengthUnit.KilonewtonPerMillimeter => (baseUnitValue / 1e3) / 1e3d, - ForcePerLengthUnit.KilopoundForcePerFoot => baseUnitValue / 14593.90292, - ForcePerLengthUnit.KilopoundForcePerInch => baseUnitValue / 1.75126835e5, + ForcePerLengthUnit.KilopoundForcePerFoot => baseUnitValue * 0.3048e-3 / 4.4482216152605, + ForcePerLengthUnit.KilopoundForcePerInch => baseUnitValue * 2.54e-5 / 4.4482216152605, ForcePerLengthUnit.MeganewtonPerCentimeter => (baseUnitValue / 1e2) / 1e6d, ForcePerLengthUnit.MeganewtonPerMeter => (baseUnitValue) / 1e6d, ForcePerLengthUnit.MeganewtonPerMillimeter => (baseUnitValue / 1e3) / 1e6d, @@ -585,12 +585,12 @@ private double GetValueAs(ForcePerLengthUnit unit) ForcePerLengthUnit.NewtonPerCentimeter => baseUnitValue / 1e2, ForcePerLengthUnit.NewtonPerMeter => baseUnitValue, ForcePerLengthUnit.NewtonPerMillimeter => baseUnitValue / 1e3, - ForcePerLengthUnit.PoundForcePerFoot => baseUnitValue / 14.59390292, - ForcePerLengthUnit.PoundForcePerInch => baseUnitValue / 1.75126835e2, - ForcePerLengthUnit.PoundForcePerYard => baseUnitValue / 4.864634307, - ForcePerLengthUnit.TonneForcePerCentimeter => baseUnitValue / 9.80665002864e5, - ForcePerLengthUnit.TonneForcePerMeter => baseUnitValue / 9.80665002864e3, - ForcePerLengthUnit.TonneForcePerMillimeter => baseUnitValue / 9.80665002864e6, + ForcePerLengthUnit.PoundForcePerFoot => baseUnitValue * 0.3048 / 4.4482216152605, + ForcePerLengthUnit.PoundForcePerInch => baseUnitValue * 2.54e-2 / 4.4482216152605, + ForcePerLengthUnit.PoundForcePerYard => baseUnitValue * 0.9144 / 4.4482216152605, + ForcePerLengthUnit.TonneForcePerCentimeter => baseUnitValue / 9.80665e5, + ForcePerLengthUnit.TonneForcePerMeter => baseUnitValue / 9.80665e3, + ForcePerLengthUnit.TonneForcePerMillimeter => baseUnitValue / 9.80665e6, _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.") }; } diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Frequency.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Frequency.g.cs index 638d51c41a..4422cbb0f8 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Frequency.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Frequency.g.cs @@ -263,7 +263,7 @@ private double GetValueInBaseUnit() FrequencyUnit.Microhertz => (_value) * 1e-6d, FrequencyUnit.Millihertz => (_value) * 1e-3d, FrequencyUnit.PerSecond => _value, - FrequencyUnit.RadianPerSecond => _value / 6.2831853072, + FrequencyUnit.RadianPerSecond => _value / (2 * 3.1415926535897931), FrequencyUnit.Terahertz => (_value) * 1e12d, _ => throw new NotImplementedException($"Can not convert {Unit} to base units.") }; @@ -289,7 +289,7 @@ private double GetValueAs(FrequencyUnit unit) FrequencyUnit.Microhertz => (baseUnitValue) / 1e-6d, FrequencyUnit.Millihertz => (baseUnitValue) / 1e-3d, FrequencyUnit.PerSecond => baseUnitValue, - FrequencyUnit.RadianPerSecond => baseUnitValue * 6.2831853072, + FrequencyUnit.RadianPerSecond => baseUnitValue * (2 * 3.1415926535897931), FrequencyUnit.Terahertz => (baseUnitValue) / 1e12d, _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.") }; diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Irradiation.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Irradiation.g.cs index 2f0fe42dd9..6b1e5bafb4 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Irradiation.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Irradiation.g.cs @@ -215,11 +215,11 @@ private double GetValueInBaseUnit() { return Unit switch { - IrradiationUnit.BtuPerSquareFoot => _value * (52752792631d / 4645152d), + IrradiationUnit.BtuPerSquareFoot => _value * 1055.05585262 / 9.290304e-2, IrradiationUnit.JoulePerSquareCentimeter => _value * 1e4, IrradiationUnit.JoulePerSquareMeter => _value, IrradiationUnit.JoulePerSquareMillimeter => _value * 1e6, - IrradiationUnit.KilobtuPerSquareFoot => (_value * (52752792631d / 4645152d)) * 1e3d, + IrradiationUnit.KilobtuPerSquareFoot => (_value * 1055.05585262 / 9.290304e-2) * 1e3d, IrradiationUnit.KilojoulePerSquareMeter => (_value) * 1e3d, IrradiationUnit.KilowattHourPerSquareMeter => (_value * 3600d) * 1e3d, IrradiationUnit.MillijoulePerSquareCentimeter => (_value * 1e4) * 1e-3d, @@ -237,11 +237,11 @@ private double GetValueAs(IrradiationUnit unit) return unit switch { - IrradiationUnit.BtuPerSquareFoot => baseUnitValue / (52752792631d / 4645152d), + IrradiationUnit.BtuPerSquareFoot => baseUnitValue * 9.290304e-2 / 1055.05585262, IrradiationUnit.JoulePerSquareCentimeter => baseUnitValue / 1e4, IrradiationUnit.JoulePerSquareMeter => baseUnitValue, IrradiationUnit.JoulePerSquareMillimeter => baseUnitValue / 1e6, - IrradiationUnit.KilobtuPerSquareFoot => (baseUnitValue / (52752792631d / 4645152d)) / 1e3d, + IrradiationUnit.KilobtuPerSquareFoot => (baseUnitValue * 9.290304e-2 / 1055.05585262) / 1e3d, IrradiationUnit.KilojoulePerSquareMeter => (baseUnitValue) / 1e3d, IrradiationUnit.KilowattHourPerSquareMeter => (baseUnitValue / 3600d) / 1e3d, IrradiationUnit.MillijoulePerSquareCentimeter => (baseUnitValue / 1e4) / 1e-3d, diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/KinematicViscosity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/KinematicViscosity.g.cs index 1227eef234..98ac4c33f4 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/KinematicViscosity.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/KinematicViscosity.g.cs @@ -221,7 +221,7 @@ private double GetValueInBaseUnit() KinematicViscosityUnit.Microstokes => (_value / 1e4) * 1e-6d, KinematicViscosityUnit.Millistokes => (_value / 1e4) * 1e-3d, KinematicViscosityUnit.Nanostokes => (_value / 1e4) * 1e-9d, - KinematicViscosityUnit.SquareFootPerSecond => _value / 10.7639, + KinematicViscosityUnit.SquareFootPerSecond => _value * 9.290304e-2, KinematicViscosityUnit.SquareMeterPerSecond => _value, KinematicViscosityUnit.Stokes => _value / 1e4, _ => throw new NotImplementedException($"Can not convert {Unit} to base units.") @@ -243,7 +243,7 @@ private double GetValueAs(KinematicViscosityUnit unit) KinematicViscosityUnit.Microstokes => (baseUnitValue * 1e4) / 1e-6d, KinematicViscosityUnit.Millistokes => (baseUnitValue * 1e4) / 1e-3d, KinematicViscosityUnit.Nanostokes => (baseUnitValue * 1e4) / 1e-9d, - KinematicViscosityUnit.SquareFootPerSecond => baseUnitValue * 10.7639, + KinematicViscosityUnit.SquareFootPerSecond => baseUnitValue / 9.290304e-2, KinematicViscosityUnit.SquareMeterPerSecond => baseUnitValue, KinematicViscosityUnit.Stokes => baseUnitValue * 1e4, _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.") diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Length.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Length.g.cs index 95503ba7a9..ad83dad1c4 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Length.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Length.g.cs @@ -549,8 +549,8 @@ private double GetValueInBaseUnit() LengthUnit.DataMile => _value * 1828.8, LengthUnit.Decameter => (_value) * 1e1d, LengthUnit.Decimeter => (_value) * 1e-1d, - LengthUnit.DtpPica => _value / 236.220472441, - LengthUnit.DtpPoint => (_value / 72) * 2.54e-2, + LengthUnit.DtpPica => _value * 2.54e-2 / 6, + LengthUnit.DtpPoint => _value * 2.54e-2 / 72, LengthUnit.Fathom => _value * 1.8288, LengthUnit.Femtometer => (_value) * 1e-15d, LengthUnit.Foot => _value * 0.3048, @@ -577,11 +577,11 @@ private double GetValueInBaseUnit() LengthUnit.NauticalMile => _value * 1852, LengthUnit.Parsec => _value * 3.08567758128e16, LengthUnit.Picometer => (_value) * 1e-12d, - LengthUnit.PrinterPica => _value / 237.106301584, - LengthUnit.PrinterPoint => (_value / 72.27) * 2.54e-2, + LengthUnit.PrinterPica => _value * 2.54e-2 * 400 / 2409, + LengthUnit.PrinterPoint => _value * 2.54e-2 / 72.27 , LengthUnit.Shackle => _value * 27.432, LengthUnit.SolarRadius => _value * 6.95700e8, - LengthUnit.Twip => _value / 56692.913385826, + LengthUnit.Twip => _value * 2.54e-2 / 1440, LengthUnit.UsSurveyFoot => _value * 1200 / 3937, LengthUnit.Yard => _value * 0.9144, _ => throw new NotImplementedException($"Can not convert {Unit} to base units.") @@ -604,8 +604,8 @@ private double GetValueAs(LengthUnit unit) LengthUnit.DataMile => baseUnitValue / 1828.8, LengthUnit.Decameter => (baseUnitValue) / 1e1d, LengthUnit.Decimeter => (baseUnitValue) / 1e-1d, - LengthUnit.DtpPica => baseUnitValue * 236.220472441, - LengthUnit.DtpPoint => (baseUnitValue / 2.54e-2) * 72, + LengthUnit.DtpPica => baseUnitValue * 6 / 2.54e-2, + LengthUnit.DtpPoint => baseUnitValue * 72 / 2.54e-2, LengthUnit.Fathom => baseUnitValue / 1.8288, LengthUnit.Femtometer => (baseUnitValue) / 1e-15d, LengthUnit.Foot => baseUnitValue / 0.3048, @@ -632,11 +632,11 @@ private double GetValueAs(LengthUnit unit) LengthUnit.NauticalMile => baseUnitValue / 1852, LengthUnit.Parsec => baseUnitValue / 3.08567758128e16, LengthUnit.Picometer => (baseUnitValue) / 1e-12d, - LengthUnit.PrinterPica => baseUnitValue * 237.106301584, - LengthUnit.PrinterPoint => (baseUnitValue / 2.54e-2) * 72.27, + LengthUnit.PrinterPica => baseUnitValue / (2.54e-2 * 400 / 2409), + LengthUnit.PrinterPoint => baseUnitValue * 72.27 / 2.54e-2, LengthUnit.Shackle => baseUnitValue / 27.432, LengthUnit.SolarRadius => baseUnitValue / 6.95700e8, - LengthUnit.Twip => baseUnitValue * 56692.913385826, + LengthUnit.Twip => baseUnitValue * 1440 / 2.54e-2, LengthUnit.UsSurveyFoot => baseUnitValue * 3937 / 1200, LengthUnit.Yard => baseUnitValue / 0.9144, _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.") diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/LinearDensity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/LinearDensity.g.cs index d362bb9700..91011ce626 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/LinearDensity.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/LinearDensity.g.cs @@ -321,8 +321,8 @@ private double GetValueInBaseUnit() LinearDensityUnit.MilligramPerFoot => (_value * ( 1e-3 / 0.3048 )) * 1e-3d, LinearDensityUnit.MilligramPerMeter => (_value * 1e-3) * 1e-3d, LinearDensityUnit.MilligramPerMillimeter => (_value) * 1e-3d, - LinearDensityUnit.PoundPerFoot => _value * 1.48816394, - LinearDensityUnit.PoundPerInch => _value / 5.5997415e-2, + LinearDensityUnit.PoundPerFoot => _value * 0.45359237 / 0.3048, + LinearDensityUnit.PoundPerInch => _value * 0.45359237 / 2.54e-2, _ => throw new NotImplementedException($"Can not convert {Unit} to base units.") }; } @@ -352,8 +352,8 @@ private double GetValueAs(LinearDensityUnit unit) LinearDensityUnit.MilligramPerFoot => (baseUnitValue / ( 1e-3 / 0.3048 )) / 1e-3d, LinearDensityUnit.MilligramPerMeter => (baseUnitValue / 1e-3) / 1e-3d, LinearDensityUnit.MilligramPerMillimeter => (baseUnitValue) / 1e-3d, - LinearDensityUnit.PoundPerFoot => baseUnitValue / 1.48816394, - LinearDensityUnit.PoundPerInch => baseUnitValue * 5.5997415e-2, + LinearDensityUnit.PoundPerFoot => baseUnitValue * 0.3048 / 0.45359237, + LinearDensityUnit.PoundPerInch => baseUnitValue * 2.54e-2 / 0.45359237, _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.") }; } diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/LinearPowerDensity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/LinearPowerDensity.g.cs index adae34cc7c..c1865ad45d 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/LinearPowerDensity.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/LinearPowerDensity.g.cs @@ -376,28 +376,28 @@ private double GetValueInBaseUnit() return Unit switch { LinearPowerDensityUnit.GigawattPerCentimeter => (_value * 1e2) * 1e9d, - LinearPowerDensityUnit.GigawattPerFoot => (_value * 3.280839895) * 1e9d, - LinearPowerDensityUnit.GigawattPerInch => (_value * 39.37007874) * 1e9d, + LinearPowerDensityUnit.GigawattPerFoot => (_value / 0.3048) * 1e9d, + LinearPowerDensityUnit.GigawattPerInch => (_value / 2.54e-2) * 1e9d, LinearPowerDensityUnit.GigawattPerMeter => (_value) * 1e9d, LinearPowerDensityUnit.GigawattPerMillimeter => (_value * 1e3) * 1e9d, LinearPowerDensityUnit.KilowattPerCentimeter => (_value * 1e2) * 1e3d, - LinearPowerDensityUnit.KilowattPerFoot => (_value * 3.280839895) * 1e3d, - LinearPowerDensityUnit.KilowattPerInch => (_value * 39.37007874) * 1e3d, + LinearPowerDensityUnit.KilowattPerFoot => (_value / 0.3048) * 1e3d, + LinearPowerDensityUnit.KilowattPerInch => (_value / 2.54e-2) * 1e3d, LinearPowerDensityUnit.KilowattPerMeter => (_value) * 1e3d, LinearPowerDensityUnit.KilowattPerMillimeter => (_value * 1e3) * 1e3d, LinearPowerDensityUnit.MegawattPerCentimeter => (_value * 1e2) * 1e6d, - LinearPowerDensityUnit.MegawattPerFoot => (_value * 3.280839895) * 1e6d, - LinearPowerDensityUnit.MegawattPerInch => (_value * 39.37007874) * 1e6d, + LinearPowerDensityUnit.MegawattPerFoot => (_value / 0.3048) * 1e6d, + LinearPowerDensityUnit.MegawattPerInch => (_value / 2.54e-2) * 1e6d, LinearPowerDensityUnit.MegawattPerMeter => (_value) * 1e6d, LinearPowerDensityUnit.MegawattPerMillimeter => (_value * 1e3) * 1e6d, LinearPowerDensityUnit.MilliwattPerCentimeter => (_value * 1e2) * 1e-3d, - LinearPowerDensityUnit.MilliwattPerFoot => (_value * 3.280839895) * 1e-3d, - LinearPowerDensityUnit.MilliwattPerInch => (_value * 39.37007874) * 1e-3d, + LinearPowerDensityUnit.MilliwattPerFoot => (_value / 0.3048) * 1e-3d, + LinearPowerDensityUnit.MilliwattPerInch => (_value / 2.54e-2) * 1e-3d, LinearPowerDensityUnit.MilliwattPerMeter => (_value) * 1e-3d, LinearPowerDensityUnit.MilliwattPerMillimeter => (_value * 1e3) * 1e-3d, LinearPowerDensityUnit.WattPerCentimeter => _value * 1e2, - LinearPowerDensityUnit.WattPerFoot => _value * 3.280839895, - LinearPowerDensityUnit.WattPerInch => _value * 39.37007874, + LinearPowerDensityUnit.WattPerFoot => _value / 0.3048, + LinearPowerDensityUnit.WattPerInch => _value / 2.54e-2, LinearPowerDensityUnit.WattPerMeter => _value, LinearPowerDensityUnit.WattPerMillimeter => _value * 1e3, _ => throw new NotImplementedException($"Can not convert {Unit} to base units.") @@ -414,28 +414,28 @@ private double GetValueAs(LinearPowerDensityUnit unit) return unit switch { LinearPowerDensityUnit.GigawattPerCentimeter => (baseUnitValue / 1e2) / 1e9d, - LinearPowerDensityUnit.GigawattPerFoot => (baseUnitValue / 3.280839895) / 1e9d, - LinearPowerDensityUnit.GigawattPerInch => (baseUnitValue / 39.37007874) / 1e9d, + LinearPowerDensityUnit.GigawattPerFoot => (baseUnitValue * 0.3048) / 1e9d, + LinearPowerDensityUnit.GigawattPerInch => (baseUnitValue * 2.54e-2) / 1e9d, LinearPowerDensityUnit.GigawattPerMeter => (baseUnitValue) / 1e9d, LinearPowerDensityUnit.GigawattPerMillimeter => (baseUnitValue / 1e3) / 1e9d, LinearPowerDensityUnit.KilowattPerCentimeter => (baseUnitValue / 1e2) / 1e3d, - LinearPowerDensityUnit.KilowattPerFoot => (baseUnitValue / 3.280839895) / 1e3d, - LinearPowerDensityUnit.KilowattPerInch => (baseUnitValue / 39.37007874) / 1e3d, + LinearPowerDensityUnit.KilowattPerFoot => (baseUnitValue * 0.3048) / 1e3d, + LinearPowerDensityUnit.KilowattPerInch => (baseUnitValue * 2.54e-2) / 1e3d, LinearPowerDensityUnit.KilowattPerMeter => (baseUnitValue) / 1e3d, LinearPowerDensityUnit.KilowattPerMillimeter => (baseUnitValue / 1e3) / 1e3d, LinearPowerDensityUnit.MegawattPerCentimeter => (baseUnitValue / 1e2) / 1e6d, - LinearPowerDensityUnit.MegawattPerFoot => (baseUnitValue / 3.280839895) / 1e6d, - LinearPowerDensityUnit.MegawattPerInch => (baseUnitValue / 39.37007874) / 1e6d, + LinearPowerDensityUnit.MegawattPerFoot => (baseUnitValue * 0.3048) / 1e6d, + LinearPowerDensityUnit.MegawattPerInch => (baseUnitValue * 2.54e-2) / 1e6d, LinearPowerDensityUnit.MegawattPerMeter => (baseUnitValue) / 1e6d, LinearPowerDensityUnit.MegawattPerMillimeter => (baseUnitValue / 1e3) / 1e6d, LinearPowerDensityUnit.MilliwattPerCentimeter => (baseUnitValue / 1e2) / 1e-3d, - LinearPowerDensityUnit.MilliwattPerFoot => (baseUnitValue / 3.280839895) / 1e-3d, - LinearPowerDensityUnit.MilliwattPerInch => (baseUnitValue / 39.37007874) / 1e-3d, + LinearPowerDensityUnit.MilliwattPerFoot => (baseUnitValue * 0.3048) / 1e-3d, + LinearPowerDensityUnit.MilliwattPerInch => (baseUnitValue * 2.54e-2) / 1e-3d, LinearPowerDensityUnit.MilliwattPerMeter => (baseUnitValue) / 1e-3d, LinearPowerDensityUnit.MilliwattPerMillimeter => (baseUnitValue / 1e3) / 1e-3d, LinearPowerDensityUnit.WattPerCentimeter => baseUnitValue / 1e2, - LinearPowerDensityUnit.WattPerFoot => baseUnitValue / 3.280839895, - LinearPowerDensityUnit.WattPerInch => baseUnitValue / 39.37007874, + LinearPowerDensityUnit.WattPerFoot => baseUnitValue * 0.3048, + LinearPowerDensityUnit.WattPerInch => baseUnitValue * 2.54e-2, LinearPowerDensityUnit.WattPerMeter => baseUnitValue, LinearPowerDensityUnit.WattPerMillimeter => baseUnitValue / 1e3, _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.") diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Luminance.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Luminance.g.cs index bf8f51075b..6049823be3 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Luminance.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Luminance.g.cs @@ -225,8 +225,8 @@ private double GetValueInBaseUnit() { return Unit switch { - LuminanceUnit.CandelaPerSquareFoot => _value* 1.07639e1, - LuminanceUnit.CandelaPerSquareInch => _value* 1.5500031e3, + LuminanceUnit.CandelaPerSquareFoot => _value / 9.290304e-2, + LuminanceUnit.CandelaPerSquareInch => _value / 0.00064516, LuminanceUnit.CandelaPerSquareMeter => _value, LuminanceUnit.CenticandelaPerSquareMeter => (_value) * 1e-2d, LuminanceUnit.DecicandelaPerSquareMeter => (_value) * 1e-1d, @@ -248,8 +248,8 @@ private double GetValueAs(LuminanceUnit unit) return unit switch { - LuminanceUnit.CandelaPerSquareFoot => baseUnitValue/ 1.07639e1, - LuminanceUnit.CandelaPerSquareInch => baseUnitValue/ 1.5500031e3, + LuminanceUnit.CandelaPerSquareFoot => baseUnitValue * 9.290304e-2, + LuminanceUnit.CandelaPerSquareInch => baseUnitValue * 0.00064516, LuminanceUnit.CandelaPerSquareMeter => baseUnitValue, LuminanceUnit.CenticandelaPerSquareMeter => (baseUnitValue) / 1e-2d, LuminanceUnit.DecicandelaPerSquareMeter => (baseUnitValue) / 1e-1d, diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Mass.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Mass.g.cs index 33ec70aedc..2871417d07 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Mass.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Mass.g.cs @@ -397,14 +397,14 @@ private double GetValueInBaseUnit() MassUnit.Decigram => (_value / 1e3) * 1e-1d, MassUnit.EarthMass => _value * 5.9722E+24, MassUnit.Femtogram => (_value / 1e3) * 1e-15d, - MassUnit.Grain => _value / 15432.358352941431, + MassUnit.Grain => _value * 64.79891e-6, MassUnit.Gram => _value / 1e3, MassUnit.Hectogram => (_value / 1e3) * 1e2d, MassUnit.Kilogram => (_value / 1e3) * 1e3d, MassUnit.Kilopound => (_value * 0.45359237) * 1e3d, MassUnit.Kilotonne => (_value * 1e3) * 1e3d, - MassUnit.LongHundredweight => _value / 0.01968413055222121, - MassUnit.LongTon => _value * 1.0160469088e3, + MassUnit.LongHundredweight => _value * 50.80234544, + MassUnit.LongTon => _value * 1016.0469088, MassUnit.Megapound => (_value * 0.45359237) * 1e6d, MassUnit.Megatonne => (_value * 1e3) * 1e6d, MassUnit.Microgram => (_value / 1e3) * 1e-6d, @@ -413,11 +413,11 @@ private double GetValueInBaseUnit() MassUnit.Ounce => _value * 0.028349523125, MassUnit.Picogram => (_value / 1e3) * 1e-12d, MassUnit.Pound => _value * 0.45359237, - MassUnit.ShortHundredweight => _value / 0.022046226218487758, - MassUnit.ShortTon => _value * 9.0718474e2, - MassUnit.Slug => _value / 6.852176556196105e-2, + MassUnit.ShortHundredweight => _value * 45.359237, + MassUnit.ShortTon => _value * 907.18474, + MassUnit.Slug => _value * 0.45359237 * 9.80665 / 0.3048, MassUnit.SolarMass => _value * 1.98947e30, - MassUnit.Stone => _value / 0.1574731728702698, + MassUnit.Stone => _value * 6.35029318, MassUnit.Tonne => _value * 1e3, _ => throw new NotImplementedException($"Can not convert {Unit} to base units.") }; @@ -437,14 +437,14 @@ private double GetValueAs(MassUnit unit) MassUnit.Decigram => (baseUnitValue * 1e3) / 1e-1d, MassUnit.EarthMass => baseUnitValue / 5.9722E+24, MassUnit.Femtogram => (baseUnitValue * 1e3) / 1e-15d, - MassUnit.Grain => baseUnitValue * 15432.358352941431, + MassUnit.Grain => baseUnitValue / 64.79891e-6, MassUnit.Gram => baseUnitValue * 1e3, MassUnit.Hectogram => (baseUnitValue * 1e3) / 1e2d, MassUnit.Kilogram => (baseUnitValue * 1e3) / 1e3d, MassUnit.Kilopound => (baseUnitValue / 0.45359237) / 1e3d, MassUnit.Kilotonne => (baseUnitValue / 1e3) / 1e3d, - MassUnit.LongHundredweight => baseUnitValue * 0.01968413055222121, - MassUnit.LongTon => baseUnitValue / 1.0160469088e3, + MassUnit.LongHundredweight => baseUnitValue / 50.80234544, + MassUnit.LongTon => baseUnitValue / 1016.0469088, MassUnit.Megapound => (baseUnitValue / 0.45359237) / 1e6d, MassUnit.Megatonne => (baseUnitValue / 1e3) / 1e6d, MassUnit.Microgram => (baseUnitValue * 1e3) / 1e-6d, @@ -453,11 +453,11 @@ private double GetValueAs(MassUnit unit) MassUnit.Ounce => baseUnitValue / 0.028349523125, MassUnit.Picogram => (baseUnitValue * 1e3) / 1e-12d, MassUnit.Pound => baseUnitValue / 0.45359237, - MassUnit.ShortHundredweight => baseUnitValue * 0.022046226218487758, - MassUnit.ShortTon => baseUnitValue / 9.0718474e2, - MassUnit.Slug => baseUnitValue * 6.852176556196105e-2, + MassUnit.ShortHundredweight => baseUnitValue / 45.359237, + MassUnit.ShortTon => baseUnitValue / 907.18474, + MassUnit.Slug => baseUnitValue * 0.3048 / (0.45359237 * 9.80665), MassUnit.SolarMass => baseUnitValue / 1.98947e30, - MassUnit.Stone => baseUnitValue * 0.1574731728702698, + MassUnit.Stone => baseUnitValue / 6.35029318, MassUnit.Tonne => baseUnitValue / 1e3, _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.") }; diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/MassConcentration.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/MassConcentration.g.cs index 0343a009ba..83586ed26f 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/MassConcentration.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/MassConcentration.g.cs @@ -634,8 +634,8 @@ private double GetValueInBaseUnit() MassConcentrationUnit.KilogramPerCubicMeter => (_value / 1e3) * 1e3d, MassConcentrationUnit.KilogramPerCubicMillimeter => (_value / 1e-6) * 1e3d, MassConcentrationUnit.KilogramPerLiter => (_value) * 1e3d, - MassConcentrationUnit.KilopoundPerCubicFoot => (_value / 0.062427961) * 1e3d, - MassConcentrationUnit.KilopoundPerCubicInch => (_value / 3.6127298147753e-5) * 1e3d, + MassConcentrationUnit.KilopoundPerCubicFoot => (_value * 0.45359237 / 0.028316846592) * 1e3d, + MassConcentrationUnit.KilopoundPerCubicInch => (_value * 0.45359237 / 1.6387064e-5) * 1e3d, MassConcentrationUnit.MicrogramPerCubicMeter => (_value / 1e3) * 1e-6d, MassConcentrationUnit.MicrogramPerDeciliter => (_value / 1e-1) * 1e-6d, MassConcentrationUnit.MicrogramPerLiter => (_value) * 1e-6d, @@ -650,17 +650,17 @@ private double GetValueInBaseUnit() MassConcentrationUnit.NanogramPerLiter => (_value) * 1e-9d, MassConcentrationUnit.NanogramPerMicroliter => (_value / 1e-6) * 1e-9d, MassConcentrationUnit.NanogramPerMilliliter => (_value / 1e-3) * 1e-9d, - MassConcentrationUnit.OuncePerImperialGallon => _value / 0.1603586720609, - MassConcentrationUnit.OuncePerUSGallon => _value / 0.1335264711843, + MassConcentrationUnit.OuncePerImperialGallon => _value * 0.028349523125 / 0.00454609, + MassConcentrationUnit.OuncePerUSGallon => _value * 0.028349523125 / 0.003785411784, MassConcentrationUnit.PicogramPerDeciliter => (_value / 1e-1) * 1e-12d, MassConcentrationUnit.PicogramPerLiter => (_value) * 1e-12d, MassConcentrationUnit.PicogramPerMicroliter => (_value / 1e-6) * 1e-12d, MassConcentrationUnit.PicogramPerMilliliter => (_value / 1e-3) * 1e-12d, - MassConcentrationUnit.PoundPerCubicFoot => _value / 0.062427961, - MassConcentrationUnit.PoundPerCubicInch => _value / 3.6127298147753e-5, - MassConcentrationUnit.PoundPerImperialGallon => _value * 9.9776398e1, - MassConcentrationUnit.PoundPerUSGallon => _value * 1.19826427e2, - MassConcentrationUnit.SlugPerCubicFoot => _value * 515.378818, + MassConcentrationUnit.PoundPerCubicFoot => _value * 0.45359237 / 0.028316846592, + MassConcentrationUnit.PoundPerCubicInch => _value * 0.45359237 / 1.6387064e-5, + MassConcentrationUnit.PoundPerImperialGallon => _value * 0.45359237 / 0.00454609, + MassConcentrationUnit.PoundPerUSGallon => _value * 0.45359237 / 0.003785411784, + MassConcentrationUnit.SlugPerCubicFoot => _value * (0.45359237 * 9.80665) / (0.3048 * 0.028316846592), MassConcentrationUnit.TonnePerCubicCentimeter => _value / 1e-9, MassConcentrationUnit.TonnePerCubicMeter => _value / 0.001, MassConcentrationUnit.TonnePerCubicMillimeter => _value / 1e-12, @@ -696,8 +696,8 @@ private double GetValueAs(MassConcentrationUnit unit) MassConcentrationUnit.KilogramPerCubicMeter => (baseUnitValue * 1e3) / 1e3d, MassConcentrationUnit.KilogramPerCubicMillimeter => (baseUnitValue * 1e-6) / 1e3d, MassConcentrationUnit.KilogramPerLiter => (baseUnitValue) / 1e3d, - MassConcentrationUnit.KilopoundPerCubicFoot => (baseUnitValue * 0.062427961) / 1e3d, - MassConcentrationUnit.KilopoundPerCubicInch => (baseUnitValue * 3.6127298147753e-5) / 1e3d, + MassConcentrationUnit.KilopoundPerCubicFoot => (baseUnitValue * 0.028316846592 / 0.45359237) / 1e3d, + MassConcentrationUnit.KilopoundPerCubicInch => (baseUnitValue * 1.6387064e-5 / 0.45359237) / 1e3d, MassConcentrationUnit.MicrogramPerCubicMeter => (baseUnitValue * 1e3) / 1e-6d, MassConcentrationUnit.MicrogramPerDeciliter => (baseUnitValue * 1e-1) / 1e-6d, MassConcentrationUnit.MicrogramPerLiter => (baseUnitValue) / 1e-6d, @@ -712,17 +712,17 @@ private double GetValueAs(MassConcentrationUnit unit) MassConcentrationUnit.NanogramPerLiter => (baseUnitValue) / 1e-9d, MassConcentrationUnit.NanogramPerMicroliter => (baseUnitValue * 1e-6) / 1e-9d, MassConcentrationUnit.NanogramPerMilliliter => (baseUnitValue * 1e-3) / 1e-9d, - MassConcentrationUnit.OuncePerImperialGallon => baseUnitValue * 0.1603586720609, - MassConcentrationUnit.OuncePerUSGallon => baseUnitValue * 0.1335264711843, + MassConcentrationUnit.OuncePerImperialGallon => baseUnitValue * 0.00454609 / 0.028349523125, + MassConcentrationUnit.OuncePerUSGallon => baseUnitValue * 0.003785411784 / 0.028349523125, MassConcentrationUnit.PicogramPerDeciliter => (baseUnitValue * 1e-1) / 1e-12d, MassConcentrationUnit.PicogramPerLiter => (baseUnitValue) / 1e-12d, MassConcentrationUnit.PicogramPerMicroliter => (baseUnitValue * 1e-6) / 1e-12d, MassConcentrationUnit.PicogramPerMilliliter => (baseUnitValue * 1e-3) / 1e-12d, - MassConcentrationUnit.PoundPerCubicFoot => baseUnitValue * 0.062427961, - MassConcentrationUnit.PoundPerCubicInch => baseUnitValue * 3.6127298147753e-5, - MassConcentrationUnit.PoundPerImperialGallon => baseUnitValue / 9.9776398e1, - MassConcentrationUnit.PoundPerUSGallon => baseUnitValue / 1.19826427e2, - MassConcentrationUnit.SlugPerCubicFoot => baseUnitValue * 0.00194032033, + MassConcentrationUnit.PoundPerCubicFoot => baseUnitValue * 0.028316846592 / 0.45359237, + MassConcentrationUnit.PoundPerCubicInch => baseUnitValue * 1.6387064e-5 / 0.45359237, + MassConcentrationUnit.PoundPerImperialGallon => baseUnitValue * 0.00454609 / 0.45359237, + MassConcentrationUnit.PoundPerUSGallon => baseUnitValue * 0.003785411784 / 0.45359237, + MassConcentrationUnit.SlugPerCubicFoot => baseUnitValue * (0.3048 * 0.028316846592) / (0.45359237 * 9.80665), MassConcentrationUnit.TonnePerCubicCentimeter => baseUnitValue * 1e-9, MassConcentrationUnit.TonnePerCubicMeter => baseUnitValue * 0.001, MassConcentrationUnit.TonnePerCubicMillimeter => baseUnitValue * 1e-12, diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/MassFlow.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/MassFlow.g.cs index 9e0a7fb336..5098dcfbc2 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/MassFlow.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/MassFlow.g.cs @@ -468,9 +468,9 @@ private double GetValueInBaseUnit() MassFlowUnit.KilogramPerMinute => _value / 0.06, MassFlowUnit.KilogramPerSecond => (_value) * 1e3d, MassFlowUnit.MegagramPerDay => (_value / 86400) * 1e6d, - MassFlowUnit.MegapoundPerDay => (_value / 190.47936) * 1e6d, - MassFlowUnit.MegapoundPerHour => (_value / 7.93664) * 1e6d, - MassFlowUnit.MegapoundPerMinute => (_value / 0.132277) * 1e6d, + MassFlowUnit.MegapoundPerDay => (_value * 453.59237 / 86400) * 1e6d, + MassFlowUnit.MegapoundPerHour => (_value * 453.59237 / 3600) * 1e6d, + MassFlowUnit.MegapoundPerMinute => (_value * 453.59237 / 60) * 1e6d, MassFlowUnit.MegapoundPerSecond => (_value * 453.59237) * 1e6d, MassFlowUnit.MicrogramPerDay => (_value / 86400) * 1e-6d, MassFlowUnit.MicrogramPerSecond => (_value) * 1e-6d, @@ -478,13 +478,13 @@ private double GetValueInBaseUnit() MassFlowUnit.MilligramPerSecond => (_value) * 1e-3d, MassFlowUnit.NanogramPerDay => (_value / 86400) * 1e-9d, MassFlowUnit.NanogramPerSecond => (_value) * 1e-9d, - MassFlowUnit.PoundPerDay => _value / 190.47936, - MassFlowUnit.PoundPerHour => _value / 7.93664, - MassFlowUnit.PoundPerMinute => _value / 0.132277, + MassFlowUnit.PoundPerDay => _value * 453.59237 / 86400, + MassFlowUnit.PoundPerHour => _value * 453.59237 / 3600, + MassFlowUnit.PoundPerMinute => _value * 453.59237 / 60, MassFlowUnit.PoundPerSecond => _value * 453.59237, - MassFlowUnit.ShortTonPerHour => _value * 251.9957611, + MassFlowUnit.ShortTonPerHour => _value * 907.18474 / 3.6, MassFlowUnit.TonnePerDay => _value / 0.0864000, - MassFlowUnit.TonnePerHour => 1000 * _value / 3.6, + MassFlowUnit.TonnePerHour => _value * 1000 / 3.6, _ => throw new NotImplementedException($"Can not convert {Unit} to base units.") }; } @@ -514,9 +514,9 @@ private double GetValueAs(MassFlowUnit unit) MassFlowUnit.KilogramPerMinute => baseUnitValue * 0.06, MassFlowUnit.KilogramPerSecond => (baseUnitValue) / 1e3d, MassFlowUnit.MegagramPerDay => (baseUnitValue * 86400) / 1e6d, - MassFlowUnit.MegapoundPerDay => (baseUnitValue * 190.47936) / 1e6d, - MassFlowUnit.MegapoundPerHour => (baseUnitValue * 7.93664) / 1e6d, - MassFlowUnit.MegapoundPerMinute => (baseUnitValue * 0.132277) / 1e6d, + MassFlowUnit.MegapoundPerDay => (baseUnitValue * 86400 / 453.59237) / 1e6d, + MassFlowUnit.MegapoundPerHour => (baseUnitValue * 3600 / 453.59237) / 1e6d, + MassFlowUnit.MegapoundPerMinute => (baseUnitValue * 60 / 453.59237) / 1e6d, MassFlowUnit.MegapoundPerSecond => (baseUnitValue / 453.59237) / 1e6d, MassFlowUnit.MicrogramPerDay => (baseUnitValue * 86400) / 1e-6d, MassFlowUnit.MicrogramPerSecond => (baseUnitValue) / 1e-6d, @@ -524,11 +524,11 @@ private double GetValueAs(MassFlowUnit unit) MassFlowUnit.MilligramPerSecond => (baseUnitValue) / 1e-3d, MassFlowUnit.NanogramPerDay => (baseUnitValue * 86400) / 1e-9d, MassFlowUnit.NanogramPerSecond => (baseUnitValue) / 1e-9d, - MassFlowUnit.PoundPerDay => baseUnitValue * 190.47936, - MassFlowUnit.PoundPerHour => baseUnitValue * 7.93664, - MassFlowUnit.PoundPerMinute => baseUnitValue * 0.132277, + MassFlowUnit.PoundPerDay => baseUnitValue * 86400 / 453.59237, + MassFlowUnit.PoundPerHour => baseUnitValue * 3600 / 453.59237, + MassFlowUnit.PoundPerMinute => baseUnitValue * 60 / 453.59237, MassFlowUnit.PoundPerSecond => baseUnitValue / 453.59237, - MassFlowUnit.ShortTonPerHour => baseUnitValue / 251.9957611, + MassFlowUnit.ShortTonPerHour => baseUnitValue * 3.6 / 907.18474, MassFlowUnit.TonnePerDay => baseUnitValue * 0.0864000, MassFlowUnit.TonnePerHour => baseUnitValue * 3.6 / 1000, _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.") diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/MassMomentOfInertia.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/MassMomentOfInertia.g.cs index bebc033d89..8de0bbb9de 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/MassMomentOfInertia.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/MassMomentOfInertia.g.cs @@ -422,10 +422,10 @@ private double GetValueInBaseUnit() MassMomentOfInertiaUnit.MilligramSquareDecimeter => (_value / 1e5) * 1e-3d, MassMomentOfInertiaUnit.MilligramSquareMeter => (_value / 1e3) * 1e-3d, MassMomentOfInertiaUnit.MilligramSquareMillimeter => (_value / 1e9) * 1e-3d, - MassMomentOfInertiaUnit.PoundSquareFoot => _value * 4.21401101e-2, - MassMomentOfInertiaUnit.PoundSquareInch => _value * 2.9263965e-4, - MassMomentOfInertiaUnit.SlugSquareFoot => _value * 1.3558179619, - MassMomentOfInertiaUnit.SlugSquareInch => _value * 9.41540242e-3, + MassMomentOfInertiaUnit.PoundSquareFoot => _value * (0.45359237 * 9.290304e-2), + MassMomentOfInertiaUnit.PoundSquareInch => _value * (0.45359237 * 0.00064516), + MassMomentOfInertiaUnit.SlugSquareFoot => _value * 0.45359237 * 9.290304e-2 * 9.80665 / 0.3048, + MassMomentOfInertiaUnit.SlugSquareInch => _value * 0.45359237 * 0.00064516 * 9.80665 / 0.3048, MassMomentOfInertiaUnit.TonneSquareCentimeter => _value / 1e1, MassMomentOfInertiaUnit.TonneSquareDecimeter => _value / 1e-1, MassMomentOfInertiaUnit.TonneSquareMeter => _value / 1e-3, @@ -463,10 +463,10 @@ private double GetValueAs(MassMomentOfInertiaUnit unit) MassMomentOfInertiaUnit.MilligramSquareDecimeter => (baseUnitValue * 1e5) / 1e-3d, MassMomentOfInertiaUnit.MilligramSquareMeter => (baseUnitValue * 1e3) / 1e-3d, MassMomentOfInertiaUnit.MilligramSquareMillimeter => (baseUnitValue * 1e9) / 1e-3d, - MassMomentOfInertiaUnit.PoundSquareFoot => baseUnitValue / 4.21401101e-2, - MassMomentOfInertiaUnit.PoundSquareInch => baseUnitValue / 2.9263965e-4, - MassMomentOfInertiaUnit.SlugSquareFoot => baseUnitValue / 1.3558179619, - MassMomentOfInertiaUnit.SlugSquareInch => baseUnitValue / 9.41540242e-3, + MassMomentOfInertiaUnit.PoundSquareFoot => baseUnitValue / (0.45359237 * 9.290304e-2), + MassMomentOfInertiaUnit.PoundSquareInch => baseUnitValue / (0.45359237 * 0.00064516), + MassMomentOfInertiaUnit.SlugSquareFoot => baseUnitValue * 0.3048 / (0.45359237 * 9.290304e-2 * 9.80665), + MassMomentOfInertiaUnit.SlugSquareInch => baseUnitValue * 0.3048 / (0.45359237 * 0.00064516 * 9.80665), MassMomentOfInertiaUnit.TonneSquareCentimeter => baseUnitValue * 1e1, MassMomentOfInertiaUnit.TonneSquareDecimeter => baseUnitValue * 1e-1, MassMomentOfInertiaUnit.TonneSquareMeter => baseUnitValue * 1e-3, diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Molarity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Molarity.g.cs index c104846182..a1562277a7 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Molarity.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Molarity.g.cs @@ -245,7 +245,7 @@ private double GetValueInBaseUnit() MolarityUnit.MolePerLiter => _value / 1e-3, MolarityUnit.NanomolePerLiter => (_value / 1e-3) * 1e-9d, MolarityUnit.PicomolePerLiter => (_value / 1e-3) * 1e-12d, - MolarityUnit.PoundMolePerCubicFoot => _value / 6.2427960576144611956325455827221e-5, + MolarityUnit.PoundMolePerCubicFoot => _value * 1000 * 0.45359237 / 0.028316846592, _ => throw new NotImplementedException($"Can not convert {Unit} to base units.") }; } @@ -269,7 +269,7 @@ private double GetValueAs(MolarityUnit unit) MolarityUnit.MolePerLiter => baseUnitValue * 1e-3, MolarityUnit.NanomolePerLiter => (baseUnitValue * 1e-3) / 1e-9d, MolarityUnit.PicomolePerLiter => (baseUnitValue * 1e-3) / 1e-12d, - MolarityUnit.PoundMolePerCubicFoot => baseUnitValue * 6.2427960576144611956325455827221e-5, + MolarityUnit.PoundMolePerCubicFoot => baseUnitValue / (1000 * 0.45359237 / 0.028316846592), _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.") }; } diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/PowerDensity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/PowerDensity.g.cs index 4450bbb754..90e7b6e651 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/PowerDensity.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/PowerDensity.g.cs @@ -562,48 +562,48 @@ private double GetValueInBaseUnit() { return Unit switch { - PowerDensityUnit.DecawattPerCubicFoot => (_value * 3.531466672148859e1) * 1e1d, - PowerDensityUnit.DecawattPerCubicInch => (_value * 6.102374409473228e4) * 1e1d, + PowerDensityUnit.DecawattPerCubicFoot => (_value / 0.028316846592) * 1e1d, + PowerDensityUnit.DecawattPerCubicInch => (_value / 1.6387064e-5) * 1e1d, PowerDensityUnit.DecawattPerCubicMeter => (_value) * 1e1d, PowerDensityUnit.DecawattPerLiter => (_value * 1.0e3) * 1e1d, - PowerDensityUnit.DeciwattPerCubicFoot => (_value * 3.531466672148859e1) * 1e-1d, - PowerDensityUnit.DeciwattPerCubicInch => (_value * 6.102374409473228e4) * 1e-1d, + PowerDensityUnit.DeciwattPerCubicFoot => (_value / 0.028316846592) * 1e-1d, + PowerDensityUnit.DeciwattPerCubicInch => (_value / 1.6387064e-5) * 1e-1d, PowerDensityUnit.DeciwattPerCubicMeter => (_value) * 1e-1d, PowerDensityUnit.DeciwattPerLiter => (_value * 1.0e3) * 1e-1d, - PowerDensityUnit.GigawattPerCubicFoot => (_value * 3.531466672148859e1) * 1e9d, - PowerDensityUnit.GigawattPerCubicInch => (_value * 6.102374409473228e4) * 1e9d, + PowerDensityUnit.GigawattPerCubicFoot => (_value / 0.028316846592) * 1e9d, + PowerDensityUnit.GigawattPerCubicInch => (_value / 1.6387064e-5) * 1e9d, PowerDensityUnit.GigawattPerCubicMeter => (_value) * 1e9d, PowerDensityUnit.GigawattPerLiter => (_value * 1.0e3) * 1e9d, - PowerDensityUnit.KilowattPerCubicFoot => (_value * 3.531466672148859e1) * 1e3d, - PowerDensityUnit.KilowattPerCubicInch => (_value * 6.102374409473228e4) * 1e3d, + PowerDensityUnit.KilowattPerCubicFoot => (_value / 0.028316846592) * 1e3d, + PowerDensityUnit.KilowattPerCubicInch => (_value / 1.6387064e-5) * 1e3d, PowerDensityUnit.KilowattPerCubicMeter => (_value) * 1e3d, PowerDensityUnit.KilowattPerLiter => (_value * 1.0e3) * 1e3d, - PowerDensityUnit.MegawattPerCubicFoot => (_value * 3.531466672148859e1) * 1e6d, - PowerDensityUnit.MegawattPerCubicInch => (_value * 6.102374409473228e4) * 1e6d, + PowerDensityUnit.MegawattPerCubicFoot => (_value / 0.028316846592) * 1e6d, + PowerDensityUnit.MegawattPerCubicInch => (_value / 1.6387064e-5) * 1e6d, PowerDensityUnit.MegawattPerCubicMeter => (_value) * 1e6d, PowerDensityUnit.MegawattPerLiter => (_value * 1.0e3) * 1e6d, - PowerDensityUnit.MicrowattPerCubicFoot => (_value * 3.531466672148859e1) * 1e-6d, - PowerDensityUnit.MicrowattPerCubicInch => (_value * 6.102374409473228e4) * 1e-6d, + PowerDensityUnit.MicrowattPerCubicFoot => (_value / 0.028316846592) * 1e-6d, + PowerDensityUnit.MicrowattPerCubicInch => (_value / 1.6387064e-5) * 1e-6d, PowerDensityUnit.MicrowattPerCubicMeter => (_value) * 1e-6d, PowerDensityUnit.MicrowattPerLiter => (_value * 1.0e3) * 1e-6d, - PowerDensityUnit.MilliwattPerCubicFoot => (_value * 3.531466672148859e1) * 1e-3d, - PowerDensityUnit.MilliwattPerCubicInch => (_value * 6.102374409473228e4) * 1e-3d, + PowerDensityUnit.MilliwattPerCubicFoot => (_value / 0.028316846592) * 1e-3d, + PowerDensityUnit.MilliwattPerCubicInch => (_value / 1.6387064e-5) * 1e-3d, PowerDensityUnit.MilliwattPerCubicMeter => (_value) * 1e-3d, PowerDensityUnit.MilliwattPerLiter => (_value * 1.0e3) * 1e-3d, - PowerDensityUnit.NanowattPerCubicFoot => (_value * 3.531466672148859e1) * 1e-9d, - PowerDensityUnit.NanowattPerCubicInch => (_value * 6.102374409473228e4) * 1e-9d, + PowerDensityUnit.NanowattPerCubicFoot => (_value / 0.028316846592) * 1e-9d, + PowerDensityUnit.NanowattPerCubicInch => (_value / 1.6387064e-5) * 1e-9d, PowerDensityUnit.NanowattPerCubicMeter => (_value) * 1e-9d, PowerDensityUnit.NanowattPerLiter => (_value * 1.0e3) * 1e-9d, - PowerDensityUnit.PicowattPerCubicFoot => (_value * 3.531466672148859e1) * 1e-12d, - PowerDensityUnit.PicowattPerCubicInch => (_value * 6.102374409473228e4) * 1e-12d, + PowerDensityUnit.PicowattPerCubicFoot => (_value / 0.028316846592) * 1e-12d, + PowerDensityUnit.PicowattPerCubicInch => (_value / 1.6387064e-5) * 1e-12d, PowerDensityUnit.PicowattPerCubicMeter => (_value) * 1e-12d, PowerDensityUnit.PicowattPerLiter => (_value * 1.0e3) * 1e-12d, - PowerDensityUnit.TerawattPerCubicFoot => (_value * 3.531466672148859e1) * 1e12d, - PowerDensityUnit.TerawattPerCubicInch => (_value * 6.102374409473228e4) * 1e12d, + PowerDensityUnit.TerawattPerCubicFoot => (_value / 0.028316846592) * 1e12d, + PowerDensityUnit.TerawattPerCubicInch => (_value / 1.6387064e-5) * 1e12d, PowerDensityUnit.TerawattPerCubicMeter => (_value) * 1e12d, PowerDensityUnit.TerawattPerLiter => (_value * 1.0e3) * 1e12d, - PowerDensityUnit.WattPerCubicFoot => _value * 3.531466672148859e1, - PowerDensityUnit.WattPerCubicInch => _value * 6.102374409473228e4, + PowerDensityUnit.WattPerCubicFoot => _value / 0.028316846592, + PowerDensityUnit.WattPerCubicInch => _value / 1.6387064e-5, PowerDensityUnit.WattPerCubicMeter => _value, PowerDensityUnit.WattPerLiter => _value * 1.0e3, _ => throw new NotImplementedException($"Can not convert {Unit} to base units.") @@ -619,48 +619,48 @@ private double GetValueAs(PowerDensityUnit unit) return unit switch { - PowerDensityUnit.DecawattPerCubicFoot => (baseUnitValue / 3.531466672148859e1) / 1e1d, - PowerDensityUnit.DecawattPerCubicInch => (baseUnitValue / 6.102374409473228e4) / 1e1d, + PowerDensityUnit.DecawattPerCubicFoot => (baseUnitValue * 0.028316846592) / 1e1d, + PowerDensityUnit.DecawattPerCubicInch => (baseUnitValue * 1.6387064e-5) / 1e1d, PowerDensityUnit.DecawattPerCubicMeter => (baseUnitValue) / 1e1d, PowerDensityUnit.DecawattPerLiter => (baseUnitValue / 1.0e3) / 1e1d, - PowerDensityUnit.DeciwattPerCubicFoot => (baseUnitValue / 3.531466672148859e1) / 1e-1d, - PowerDensityUnit.DeciwattPerCubicInch => (baseUnitValue / 6.102374409473228e4) / 1e-1d, + PowerDensityUnit.DeciwattPerCubicFoot => (baseUnitValue * 0.028316846592) / 1e-1d, + PowerDensityUnit.DeciwattPerCubicInch => (baseUnitValue * 1.6387064e-5) / 1e-1d, PowerDensityUnit.DeciwattPerCubicMeter => (baseUnitValue) / 1e-1d, PowerDensityUnit.DeciwattPerLiter => (baseUnitValue / 1.0e3) / 1e-1d, - PowerDensityUnit.GigawattPerCubicFoot => (baseUnitValue / 3.531466672148859e1) / 1e9d, - PowerDensityUnit.GigawattPerCubicInch => (baseUnitValue / 6.102374409473228e4) / 1e9d, + PowerDensityUnit.GigawattPerCubicFoot => (baseUnitValue * 0.028316846592) / 1e9d, + PowerDensityUnit.GigawattPerCubicInch => (baseUnitValue * 1.6387064e-5) / 1e9d, PowerDensityUnit.GigawattPerCubicMeter => (baseUnitValue) / 1e9d, PowerDensityUnit.GigawattPerLiter => (baseUnitValue / 1.0e3) / 1e9d, - PowerDensityUnit.KilowattPerCubicFoot => (baseUnitValue / 3.531466672148859e1) / 1e3d, - PowerDensityUnit.KilowattPerCubicInch => (baseUnitValue / 6.102374409473228e4) / 1e3d, + PowerDensityUnit.KilowattPerCubicFoot => (baseUnitValue * 0.028316846592) / 1e3d, + PowerDensityUnit.KilowattPerCubicInch => (baseUnitValue * 1.6387064e-5) / 1e3d, PowerDensityUnit.KilowattPerCubicMeter => (baseUnitValue) / 1e3d, PowerDensityUnit.KilowattPerLiter => (baseUnitValue / 1.0e3) / 1e3d, - PowerDensityUnit.MegawattPerCubicFoot => (baseUnitValue / 3.531466672148859e1) / 1e6d, - PowerDensityUnit.MegawattPerCubicInch => (baseUnitValue / 6.102374409473228e4) / 1e6d, + PowerDensityUnit.MegawattPerCubicFoot => (baseUnitValue * 0.028316846592) / 1e6d, + PowerDensityUnit.MegawattPerCubicInch => (baseUnitValue * 1.6387064e-5) / 1e6d, PowerDensityUnit.MegawattPerCubicMeter => (baseUnitValue) / 1e6d, PowerDensityUnit.MegawattPerLiter => (baseUnitValue / 1.0e3) / 1e6d, - PowerDensityUnit.MicrowattPerCubicFoot => (baseUnitValue / 3.531466672148859e1) / 1e-6d, - PowerDensityUnit.MicrowattPerCubicInch => (baseUnitValue / 6.102374409473228e4) / 1e-6d, + PowerDensityUnit.MicrowattPerCubicFoot => (baseUnitValue * 0.028316846592) / 1e-6d, + PowerDensityUnit.MicrowattPerCubicInch => (baseUnitValue * 1.6387064e-5) / 1e-6d, PowerDensityUnit.MicrowattPerCubicMeter => (baseUnitValue) / 1e-6d, PowerDensityUnit.MicrowattPerLiter => (baseUnitValue / 1.0e3) / 1e-6d, - PowerDensityUnit.MilliwattPerCubicFoot => (baseUnitValue / 3.531466672148859e1) / 1e-3d, - PowerDensityUnit.MilliwattPerCubicInch => (baseUnitValue / 6.102374409473228e4) / 1e-3d, + PowerDensityUnit.MilliwattPerCubicFoot => (baseUnitValue * 0.028316846592) / 1e-3d, + PowerDensityUnit.MilliwattPerCubicInch => (baseUnitValue * 1.6387064e-5) / 1e-3d, PowerDensityUnit.MilliwattPerCubicMeter => (baseUnitValue) / 1e-3d, PowerDensityUnit.MilliwattPerLiter => (baseUnitValue / 1.0e3) / 1e-3d, - PowerDensityUnit.NanowattPerCubicFoot => (baseUnitValue / 3.531466672148859e1) / 1e-9d, - PowerDensityUnit.NanowattPerCubicInch => (baseUnitValue / 6.102374409473228e4) / 1e-9d, + PowerDensityUnit.NanowattPerCubicFoot => (baseUnitValue * 0.028316846592) / 1e-9d, + PowerDensityUnit.NanowattPerCubicInch => (baseUnitValue * 1.6387064e-5) / 1e-9d, PowerDensityUnit.NanowattPerCubicMeter => (baseUnitValue) / 1e-9d, PowerDensityUnit.NanowattPerLiter => (baseUnitValue / 1.0e3) / 1e-9d, - PowerDensityUnit.PicowattPerCubicFoot => (baseUnitValue / 3.531466672148859e1) / 1e-12d, - PowerDensityUnit.PicowattPerCubicInch => (baseUnitValue / 6.102374409473228e4) / 1e-12d, + PowerDensityUnit.PicowattPerCubicFoot => (baseUnitValue * 0.028316846592) / 1e-12d, + PowerDensityUnit.PicowattPerCubicInch => (baseUnitValue * 1.6387064e-5) / 1e-12d, PowerDensityUnit.PicowattPerCubicMeter => (baseUnitValue) / 1e-12d, PowerDensityUnit.PicowattPerLiter => (baseUnitValue / 1.0e3) / 1e-12d, - PowerDensityUnit.TerawattPerCubicFoot => (baseUnitValue / 3.531466672148859e1) / 1e12d, - PowerDensityUnit.TerawattPerCubicInch => (baseUnitValue / 6.102374409473228e4) / 1e12d, + PowerDensityUnit.TerawattPerCubicFoot => (baseUnitValue * 0.028316846592) / 1e12d, + PowerDensityUnit.TerawattPerCubicInch => (baseUnitValue * 1.6387064e-5) / 1e12d, PowerDensityUnit.TerawattPerCubicMeter => (baseUnitValue) / 1e12d, PowerDensityUnit.TerawattPerLiter => (baseUnitValue / 1.0e3) / 1e12d, - PowerDensityUnit.WattPerCubicFoot => baseUnitValue / 3.531466672148859e1, - PowerDensityUnit.WattPerCubicInch => baseUnitValue / 6.102374409473228e4, + PowerDensityUnit.WattPerCubicFoot => baseUnitValue * 0.028316846592, + PowerDensityUnit.WattPerCubicInch => baseUnitValue * 1.6387064e-5, PowerDensityUnit.WattPerCubicMeter => baseUnitValue, PowerDensityUnit.WattPerLiter => baseUnitValue / 1.0e3, _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.") diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/PressureChangeRate.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/PressureChangeRate.g.cs index 9d1a85d98a..2645980c42 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/PressureChangeRate.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/PressureChangeRate.g.cs @@ -307,19 +307,19 @@ private double GetValueInBaseUnit() PressureChangeRateUnit.BarPerSecond => _value * 1e5, PressureChangeRateUnit.KilopascalPerMinute => (_value / 60) * 1e3d, PressureChangeRateUnit.KilopascalPerSecond => (_value) * 1e3d, - PressureChangeRateUnit.KilopoundForcePerSquareInchPerMinute => (_value * 6.894757293168361e3 / 60) * 1e3d, - PressureChangeRateUnit.KilopoundForcePerSquareInchPerSecond => (_value * 6.894757293168361e3) * 1e3d, + PressureChangeRateUnit.KilopoundForcePerSquareInchPerMinute => (_value * (4.4482216152605 / 0.00064516) / 60) * 1e3d, + PressureChangeRateUnit.KilopoundForcePerSquareInchPerSecond => (_value * 4.4482216152605 / 0.00064516) * 1e3d, PressureChangeRateUnit.MegapascalPerMinute => (_value / 60) * 1e6d, PressureChangeRateUnit.MegapascalPerSecond => (_value) * 1e6d, - PressureChangeRateUnit.MegapoundForcePerSquareInchPerMinute => (_value * 6.894757293168361e3 / 60) * 1e6d, - PressureChangeRateUnit.MegapoundForcePerSquareInchPerSecond => (_value * 6.894757293168361e3) * 1e6d, + PressureChangeRateUnit.MegapoundForcePerSquareInchPerMinute => (_value * (4.4482216152605 / 0.00064516) / 60) * 1e6d, + PressureChangeRateUnit.MegapoundForcePerSquareInchPerSecond => (_value * 4.4482216152605 / 0.00064516) * 1e6d, PressureChangeRateUnit.MillibarPerMinute => (_value * 1e5 / 60) * 1e-3d, PressureChangeRateUnit.MillibarPerSecond => (_value * 1e5) * 1e-3d, - PressureChangeRateUnit.MillimeterOfMercuryPerSecond => _value * 133.322, + PressureChangeRateUnit.MillimeterOfMercuryPerSecond => _value * 133.322387415, PressureChangeRateUnit.PascalPerMinute => _value / 60, PressureChangeRateUnit.PascalPerSecond => _value, - PressureChangeRateUnit.PoundForcePerSquareInchPerMinute => _value * 6.894757293168361e3 / 60, - PressureChangeRateUnit.PoundForcePerSquareInchPerSecond => _value * 6.894757293168361e3, + PressureChangeRateUnit.PoundForcePerSquareInchPerMinute => _value * (4.4482216152605 / 0.00064516) / 60, + PressureChangeRateUnit.PoundForcePerSquareInchPerSecond => _value * 4.4482216152605 / 0.00064516, _ => throw new NotImplementedException($"Can not convert {Unit} to base units.") }; } @@ -338,19 +338,19 @@ private double GetValueAs(PressureChangeRateUnit unit) PressureChangeRateUnit.BarPerSecond => baseUnitValue / 1e5, PressureChangeRateUnit.KilopascalPerMinute => (baseUnitValue * 60) / 1e3d, PressureChangeRateUnit.KilopascalPerSecond => (baseUnitValue) / 1e3d, - PressureChangeRateUnit.KilopoundForcePerSquareInchPerMinute => (baseUnitValue / 6.894757293168361e3 * 60) / 1e3d, - PressureChangeRateUnit.KilopoundForcePerSquareInchPerSecond => (baseUnitValue / 6.894757293168361e3) / 1e3d, + PressureChangeRateUnit.KilopoundForcePerSquareInchPerMinute => (baseUnitValue * 60 / (4.4482216152605 / 0.00064516)) / 1e3d, + PressureChangeRateUnit.KilopoundForcePerSquareInchPerSecond => (baseUnitValue * 0.00064516 / 4.4482216152605) / 1e3d, PressureChangeRateUnit.MegapascalPerMinute => (baseUnitValue * 60) / 1e6d, PressureChangeRateUnit.MegapascalPerSecond => (baseUnitValue) / 1e6d, - PressureChangeRateUnit.MegapoundForcePerSquareInchPerMinute => (baseUnitValue / 6.894757293168361e3 * 60) / 1e6d, - PressureChangeRateUnit.MegapoundForcePerSquareInchPerSecond => (baseUnitValue / 6.894757293168361e3) / 1e6d, + PressureChangeRateUnit.MegapoundForcePerSquareInchPerMinute => (baseUnitValue * 60 / (4.4482216152605 / 0.00064516)) / 1e6d, + PressureChangeRateUnit.MegapoundForcePerSquareInchPerSecond => (baseUnitValue * 0.00064516 / 4.4482216152605) / 1e6d, PressureChangeRateUnit.MillibarPerMinute => (baseUnitValue / 1e5 * 60) / 1e-3d, PressureChangeRateUnit.MillibarPerSecond => (baseUnitValue / 1e5) / 1e-3d, - PressureChangeRateUnit.MillimeterOfMercuryPerSecond => baseUnitValue / 133.322, + PressureChangeRateUnit.MillimeterOfMercuryPerSecond => baseUnitValue / 133.322387415, PressureChangeRateUnit.PascalPerMinute => baseUnitValue * 60, PressureChangeRateUnit.PascalPerSecond => baseUnitValue, - PressureChangeRateUnit.PoundForcePerSquareInchPerMinute => baseUnitValue / 6.894757293168361e3 * 60, - PressureChangeRateUnit.PoundForcePerSquareInchPerSecond => baseUnitValue / 6.894757293168361e3, + PressureChangeRateUnit.PoundForcePerSquareInchPerMinute => baseUnitValue * 60 / (4.4482216152605 / 0.00064516), + PressureChangeRateUnit.PoundForcePerSquareInchPerSecond => baseUnitValue * 0.00064516 / 4.4482216152605, _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.") }; } diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ReciprocalArea.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ReciprocalArea.g.cs index 04060c2b09..0e4485de35 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ReciprocalArea.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ReciprocalArea.g.cs @@ -237,15 +237,15 @@ private double GetValueInBaseUnit() { ReciprocalAreaUnit.InverseSquareCentimeter => _value / 1e-4, ReciprocalAreaUnit.InverseSquareDecimeter => _value / 1e-2, - ReciprocalAreaUnit.InverseSquareFoot => _value / 0.092903, + ReciprocalAreaUnit.InverseSquareFoot => _value / 9.290304e-2, ReciprocalAreaUnit.InverseSquareInch => _value / 0.00064516, ReciprocalAreaUnit.InverseSquareKilometer => _value / 1e6, ReciprocalAreaUnit.InverseSquareMeter => _value, ReciprocalAreaUnit.InverseSquareMicrometer => _value / 1e-12, - ReciprocalAreaUnit.InverseSquareMile => _value / 2.59e6, + ReciprocalAreaUnit.InverseSquareMile => _value / (1609.344 * 1609.344), ReciprocalAreaUnit.InverseSquareMillimeter => _value / 1e-6, - ReciprocalAreaUnit.InverseSquareYard => _value / 0.836127, - ReciprocalAreaUnit.InverseUsSurveySquareFoot => _value / 0.09290341161, + ReciprocalAreaUnit.InverseSquareYard => _value / (0.9144 * 0.9144), + ReciprocalAreaUnit.InverseUsSurveySquareFoot => _value / (1200.0 / 3937.0) / (1200.0 / 3937.0), _ => throw new NotImplementedException($"Can not convert {Unit} to base units.") }; } @@ -261,15 +261,15 @@ private double GetValueAs(ReciprocalAreaUnit unit) { ReciprocalAreaUnit.InverseSquareCentimeter => baseUnitValue * 1e-4, ReciprocalAreaUnit.InverseSquareDecimeter => baseUnitValue * 1e-2, - ReciprocalAreaUnit.InverseSquareFoot => baseUnitValue * 0.092903, + ReciprocalAreaUnit.InverseSquareFoot => baseUnitValue * 9.290304e-2, ReciprocalAreaUnit.InverseSquareInch => baseUnitValue * 0.00064516, ReciprocalAreaUnit.InverseSquareKilometer => baseUnitValue * 1e6, ReciprocalAreaUnit.InverseSquareMeter => baseUnitValue, ReciprocalAreaUnit.InverseSquareMicrometer => baseUnitValue * 1e-12, - ReciprocalAreaUnit.InverseSquareMile => baseUnitValue * 2.59e6, + ReciprocalAreaUnit.InverseSquareMile => baseUnitValue * (1609.344 * 1609.344), ReciprocalAreaUnit.InverseSquareMillimeter => baseUnitValue * 1e-6, - ReciprocalAreaUnit.InverseSquareYard => baseUnitValue * 0.836127, - ReciprocalAreaUnit.InverseUsSurveySquareFoot => baseUnitValue * 0.09290341161, + ReciprocalAreaUnit.InverseSquareYard => baseUnitValue * (0.9144 * 0.9144), + ReciprocalAreaUnit.InverseUsSurveySquareFoot => baseUnitValue * (1200.0 / 3937.0) * (1200.0 / 3937.0), _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.") }; } diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/RotationalSpeed.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/RotationalSpeed.g.cs index 1ed6f69da3..d45f2190cd 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/RotationalSpeed.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/RotationalSpeed.g.cs @@ -263,8 +263,8 @@ private double GetValueInBaseUnit() RotationalSpeedUnit.NanodegreePerSecond => ((3.1415926535897931 / 180) * _value) * 1e-9d, RotationalSpeedUnit.NanoradianPerSecond => (_value) * 1e-9d, RotationalSpeedUnit.RadianPerSecond => _value, - RotationalSpeedUnit.RevolutionPerMinute => (_value * 6.2831853072) / 60, - RotationalSpeedUnit.RevolutionPerSecond => _value * 6.2831853072, + RotationalSpeedUnit.RevolutionPerMinute => (_value * 2 * 3.1415926535897931) / 60, + RotationalSpeedUnit.RevolutionPerSecond => _value * 2 * 3.1415926535897931, _ => throw new NotImplementedException($"Can not convert {Unit} to base units.") }; } @@ -289,8 +289,8 @@ private double GetValueAs(RotationalSpeedUnit unit) RotationalSpeedUnit.NanodegreePerSecond => ((180 / 3.1415926535897931) * baseUnitValue) / 1e-9d, RotationalSpeedUnit.NanoradianPerSecond => (baseUnitValue) / 1e-9d, RotationalSpeedUnit.RadianPerSecond => baseUnitValue, - RotationalSpeedUnit.RevolutionPerMinute => (baseUnitValue / 6.2831853072) * 60, - RotationalSpeedUnit.RevolutionPerSecond => baseUnitValue / 6.2831853072, + RotationalSpeedUnit.RevolutionPerMinute => (baseUnitValue / (2 * 3.1415926535897931)) * 60, + RotationalSpeedUnit.RevolutionPerSecond => baseUnitValue / (2 * 3.1415926535897931), _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.") }; } diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/RotationalStiffness.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/RotationalStiffness.g.cs index e38f3af3b4..752461eeba 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/RotationalStiffness.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/RotationalStiffness.g.cs @@ -465,7 +465,7 @@ private double GetValueInBaseUnit() RotationalStiffnessUnit.KilonewtonMeterPerRadian => (_value) * 1e3d, RotationalStiffnessUnit.KilonewtonMillimeterPerDegree => (_value * 180 / 3.1415926535897931 * 0.001) * 1e3d, RotationalStiffnessUnit.KilonewtonMillimeterPerRadian => (_value * 0.001) * 1e3d, - RotationalStiffnessUnit.KilopoundForceFootPerDegrees => _value * 77682.6, + RotationalStiffnessUnit.KilopoundForceFootPerDegrees => _value * (4.4482216152605e3 * 0.3048 * 180 / 3.1415926535897931), RotationalStiffnessUnit.MeganewtonMeterPerDegree => (_value * (180 / 3.1415926535897931)) * 1e6d, RotationalStiffnessUnit.MeganewtonMeterPerRadian => (_value) * 1e6d, RotationalStiffnessUnit.MeganewtonMillimeterPerDegree => (_value * 180 / 3.1415926535897931 * 0.001) * 1e6d, @@ -483,8 +483,8 @@ private double GetValueInBaseUnit() RotationalStiffnessUnit.NewtonMeterPerRadian => _value, RotationalStiffnessUnit.NewtonMillimeterPerDegree => _value * 180 / 3.1415926535897931 * 0.001, RotationalStiffnessUnit.NewtonMillimeterPerRadian => _value * 0.001, - RotationalStiffnessUnit.PoundForceFeetPerRadian => _value * 1.3558179483314, - RotationalStiffnessUnit.PoundForceFootPerDegrees => _value * 77.6826, + RotationalStiffnessUnit.PoundForceFeetPerRadian => _value * 4.4482216152605 * 0.3048, + RotationalStiffnessUnit.PoundForceFootPerDegrees => _value * (4.4482216152605 * 0.3048 * 180 / 3.1415926535897931), _ => throw new NotImplementedException($"Can not convert {Unit} to base units.") }; } @@ -511,7 +511,7 @@ private double GetValueAs(RotationalStiffnessUnit unit) RotationalStiffnessUnit.KilonewtonMeterPerRadian => (baseUnitValue) / 1e3d, RotationalStiffnessUnit.KilonewtonMillimeterPerDegree => (baseUnitValue / 180 * 3.1415926535897931 * 1000) / 1e3d, RotationalStiffnessUnit.KilonewtonMillimeterPerRadian => (baseUnitValue * 1000) / 1e3d, - RotationalStiffnessUnit.KilopoundForceFootPerDegrees => baseUnitValue / 77682.6, + RotationalStiffnessUnit.KilopoundForceFootPerDegrees => baseUnitValue / (4.4482216152605e3 * 0.3048 * 180 / 3.1415926535897931), RotationalStiffnessUnit.MeganewtonMeterPerDegree => (baseUnitValue / (180 / 3.1415926535897931)) / 1e6d, RotationalStiffnessUnit.MeganewtonMeterPerRadian => (baseUnitValue) / 1e6d, RotationalStiffnessUnit.MeganewtonMillimeterPerDegree => (baseUnitValue / 180 * 3.1415926535897931 * 1000) / 1e6d, @@ -529,8 +529,8 @@ private double GetValueAs(RotationalStiffnessUnit unit) RotationalStiffnessUnit.NewtonMeterPerRadian => baseUnitValue, RotationalStiffnessUnit.NewtonMillimeterPerDegree => baseUnitValue / 180 * 3.1415926535897931 * 1000, RotationalStiffnessUnit.NewtonMillimeterPerRadian => baseUnitValue * 1000, - RotationalStiffnessUnit.PoundForceFeetPerRadian => baseUnitValue / 1.3558179483314, - RotationalStiffnessUnit.PoundForceFootPerDegrees => baseUnitValue / 77.6826, + RotationalStiffnessUnit.PoundForceFeetPerRadian => baseUnitValue / (4.4482216152605 * 0.3048), + RotationalStiffnessUnit.PoundForceFootPerDegrees => baseUnitValue / (4.4482216152605 * 0.3048 * 180 / 3.1415926535897931), _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.") }; } diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs index ae39d82fcb..69320a0eda 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs @@ -173,10 +173,10 @@ private double GetValueInBaseUnit() return Unit switch { RotationalStiffnessPerLengthUnit.KilonewtonMeterPerRadianPerMeter => (_value) * 1e3d, - RotationalStiffnessPerLengthUnit.KilopoundForceFootPerDegreesPerFoot => _value * 254864.324570, + RotationalStiffnessPerLengthUnit.KilopoundForceFootPerDegreesPerFoot => _value * (4.4482216152605e3 * 180 / 3.1415926535897931), RotationalStiffnessPerLengthUnit.MeganewtonMeterPerRadianPerMeter => (_value) * 1e6d, RotationalStiffnessPerLengthUnit.NewtonMeterPerRadianPerMeter => _value, - RotationalStiffnessPerLengthUnit.PoundForceFootPerDegreesPerFoot => _value * 254.864324570, + RotationalStiffnessPerLengthUnit.PoundForceFootPerDegreesPerFoot => _value * (4.4482216152605 * 180 / 3.1415926535897931), _ => throw new NotImplementedException($"Can not convert {Unit} to base units.") }; } @@ -191,10 +191,10 @@ private double GetValueAs(RotationalStiffnessPerLengthUnit unit) return unit switch { RotationalStiffnessPerLengthUnit.KilonewtonMeterPerRadianPerMeter => (baseUnitValue) / 1e3d, - RotationalStiffnessPerLengthUnit.KilopoundForceFootPerDegreesPerFoot => baseUnitValue / 254864.324570, + RotationalStiffnessPerLengthUnit.KilopoundForceFootPerDegreesPerFoot => baseUnitValue / (4.4482216152605e3 * 180 / 3.1415926535897931), RotationalStiffnessPerLengthUnit.MeganewtonMeterPerRadianPerMeter => (baseUnitValue) / 1e6d, RotationalStiffnessPerLengthUnit.NewtonMeterPerRadianPerMeter => baseUnitValue, - RotationalStiffnessPerLengthUnit.PoundForceFootPerDegreesPerFoot => baseUnitValue / 254.864324570, + RotationalStiffnessPerLengthUnit.PoundForceFootPerDegreesPerFoot => baseUnitValue / (4.4482216152605 * 180 / 3.1415926535897931), _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.") }; } diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/SpecificEnergy.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/SpecificEnergy.g.cs index 6d3011b5fa..55e12373fa 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/SpecificEnergy.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/SpecificEnergy.g.cs @@ -425,7 +425,7 @@ private double GetValueInBaseUnit() { return Unit switch { - SpecificEnergyUnit.BtuPerPound => _value * 2326.000075362, + SpecificEnergyUnit.BtuPerPound => _value * 1055.05585262 / 0.45359237, SpecificEnergyUnit.CaloriePerGram => _value * 4.184e3, SpecificEnergyUnit.GigawattDayPerKilogram => (_value * (24 * 3.6e3)) * 1e9d, SpecificEnergyUnit.GigawattDayPerShortTon => (_value * ((24 * 3.6e3) / 9.0718474e2)) * 1e9d, @@ -468,7 +468,7 @@ private double GetValueAs(SpecificEnergyUnit unit) return unit switch { - SpecificEnergyUnit.BtuPerPound => baseUnitValue / 2326.000075362, + SpecificEnergyUnit.BtuPerPound => baseUnitValue * 0.45359237 / 1055.05585262, SpecificEnergyUnit.CaloriePerGram => baseUnitValue / 4.184e3, SpecificEnergyUnit.GigawattDayPerKilogram => (baseUnitValue / (24 * 3.6e3)) / 1e9d, SpecificEnergyUnit.GigawattDayPerShortTon => (baseUnitValue / ((24 * 3.6e3) / 9.0718474e2)) / 1e9d, diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/SpecificVolume.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/SpecificVolume.g.cs index f347d2ae21..89322d028e 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/SpecificVolume.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/SpecificVolume.g.cs @@ -152,7 +152,7 @@ private double GetValueInBaseUnit() { return Unit switch { - SpecificVolumeUnit.CubicFootPerPound => _value / 16.01846353, + SpecificVolumeUnit.CubicFootPerPound => _value * 0.028316846592 / 0.45359237, SpecificVolumeUnit.CubicMeterPerKilogram => _value, SpecificVolumeUnit.MillicubicMeterPerKilogram => (_value) * 1e-3d, _ => throw new NotImplementedException($"Can not convert {Unit} to base units.") @@ -168,7 +168,7 @@ private double GetValueAs(SpecificVolumeUnit unit) return unit switch { - SpecificVolumeUnit.CubicFootPerPound => baseUnitValue * 16.01846353, + SpecificVolumeUnit.CubicFootPerPound => baseUnitValue * 0.45359237 / 0.028316846592, SpecificVolumeUnit.CubicMeterPerKilogram => baseUnitValue, SpecificVolumeUnit.MillicubicMeterPerKilogram => (baseUnitValue) / 1e-3d, _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.") diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/SpecificWeight.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/SpecificWeight.g.cs index 780cc8c31a..9d23e9bbb7 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/SpecificWeight.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/SpecificWeight.g.cs @@ -301,14 +301,14 @@ private double GetValueInBaseUnit() SpecificWeightUnit.KilonewtonPerCubicCentimeter => (_value * 1000000) * 1e3d, SpecificWeightUnit.KilonewtonPerCubicMeter => (_value) * 1e3d, SpecificWeightUnit.KilonewtonPerCubicMillimeter => (_value * 1000000000) * 1e3d, - SpecificWeightUnit.KilopoundForcePerCubicFoot => (_value * 1.570874638462462e2) * 1e3d, - SpecificWeightUnit.KilopoundForcePerCubicInch => (_value * 2.714471375263134e5) * 1e3d, + SpecificWeightUnit.KilopoundForcePerCubicFoot => (_value * 4.4482216152605 / 0.028316846592) * 1e3d, + SpecificWeightUnit.KilopoundForcePerCubicInch => (_value * 4.4482216152605 / 1.6387064e-5) * 1e3d, SpecificWeightUnit.MeganewtonPerCubicMeter => (_value) * 1e6d, SpecificWeightUnit.NewtonPerCubicCentimeter => _value * 1000000, SpecificWeightUnit.NewtonPerCubicMeter => _value, SpecificWeightUnit.NewtonPerCubicMillimeter => _value * 1000000000, - SpecificWeightUnit.PoundForcePerCubicFoot => _value * 1.570874638462462e2, - SpecificWeightUnit.PoundForcePerCubicInch => _value * 2.714471375263134e5, + SpecificWeightUnit.PoundForcePerCubicFoot => _value * 4.4482216152605 / 0.028316846592, + SpecificWeightUnit.PoundForcePerCubicInch => _value * 4.4482216152605 / 1.6387064e-5, SpecificWeightUnit.TonneForcePerCubicCentimeter => _value * 9.80665e9, SpecificWeightUnit.TonneForcePerCubicMeter => _value * 9.80665e3, SpecificWeightUnit.TonneForcePerCubicMillimeter => _value * 9.80665e12, @@ -331,14 +331,14 @@ private double GetValueAs(SpecificWeightUnit unit) SpecificWeightUnit.KilonewtonPerCubicCentimeter => (baseUnitValue * 0.000001) / 1e3d, SpecificWeightUnit.KilonewtonPerCubicMeter => (baseUnitValue) / 1e3d, SpecificWeightUnit.KilonewtonPerCubicMillimeter => (baseUnitValue * 0.000000001) / 1e3d, - SpecificWeightUnit.KilopoundForcePerCubicFoot => (baseUnitValue / 1.570874638462462e2) / 1e3d, - SpecificWeightUnit.KilopoundForcePerCubicInch => (baseUnitValue / 2.714471375263134e5) / 1e3d, + SpecificWeightUnit.KilopoundForcePerCubicFoot => (baseUnitValue * 0.028316846592 / 4.4482216152605) / 1e3d, + SpecificWeightUnit.KilopoundForcePerCubicInch => (baseUnitValue * 1.6387064e-5 / 4.4482216152605) / 1e3d, SpecificWeightUnit.MeganewtonPerCubicMeter => (baseUnitValue) / 1e6d, SpecificWeightUnit.NewtonPerCubicCentimeter => baseUnitValue * 0.000001, SpecificWeightUnit.NewtonPerCubicMeter => baseUnitValue, SpecificWeightUnit.NewtonPerCubicMillimeter => baseUnitValue * 0.000000001, - SpecificWeightUnit.PoundForcePerCubicFoot => baseUnitValue / 1.570874638462462e2, - SpecificWeightUnit.PoundForcePerCubicInch => baseUnitValue / 2.714471375263134e5, + SpecificWeightUnit.PoundForcePerCubicFoot => baseUnitValue * 0.028316846592 / 4.4482216152605, + SpecificWeightUnit.PoundForcePerCubicInch => baseUnitValue * 1.6387064e-5 / 4.4482216152605, SpecificWeightUnit.TonneForcePerCubicCentimeter => baseUnitValue / 9.80665e9, SpecificWeightUnit.TonneForcePerCubicMeter => baseUnitValue / 9.80665e3, SpecificWeightUnit.TonneForcePerCubicMillimeter => baseUnitValue / 9.80665e12, diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/StandardVolumeFlow.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/StandardVolumeFlow.g.cs index e359274165..812ae427b0 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/StandardVolumeFlow.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/StandardVolumeFlow.g.cs @@ -213,9 +213,9 @@ private double GetValueInBaseUnit() return Unit switch { StandardVolumeFlowUnit.StandardCubicCentimeterPerMinute => _value / 6e7, - StandardVolumeFlowUnit.StandardCubicFootPerHour => _value * 7.8657907199999087346816086183876e-6, - StandardVolumeFlowUnit.StandardCubicFootPerMinute => _value / 2118.88000326, - StandardVolumeFlowUnit.StandardCubicFootPerSecond => _value / 35.314666721, + StandardVolumeFlowUnit.StandardCubicFootPerHour => _value * 0.028316846592 / 3600, + StandardVolumeFlowUnit.StandardCubicFootPerMinute => _value * 0.028316846592 / 60, + StandardVolumeFlowUnit.StandardCubicFootPerSecond => _value * 0.028316846592, StandardVolumeFlowUnit.StandardCubicMeterPerDay => _value / 86400, StandardVolumeFlowUnit.StandardCubicMeterPerHour => _value / 3600, StandardVolumeFlowUnit.StandardCubicMeterPerMinute => _value / 60, @@ -235,9 +235,9 @@ private double GetValueAs(StandardVolumeFlowUnit unit) return unit switch { StandardVolumeFlowUnit.StandardCubicCentimeterPerMinute => baseUnitValue * 6e7, - StandardVolumeFlowUnit.StandardCubicFootPerHour => baseUnitValue / 7.8657907199999087346816086183876e-6, - StandardVolumeFlowUnit.StandardCubicFootPerMinute => baseUnitValue * 2118.88000326, - StandardVolumeFlowUnit.StandardCubicFootPerSecond => baseUnitValue * 35.314666721, + StandardVolumeFlowUnit.StandardCubicFootPerHour => baseUnitValue / (0.028316846592 / 3600), + StandardVolumeFlowUnit.StandardCubicFootPerMinute => baseUnitValue / (0.028316846592 / 60), + StandardVolumeFlowUnit.StandardCubicFootPerSecond => baseUnitValue / 0.028316846592, StandardVolumeFlowUnit.StandardCubicMeterPerDay => baseUnitValue * 86400, StandardVolumeFlowUnit.StandardCubicMeterPerHour => baseUnitValue * 3600, StandardVolumeFlowUnit.StandardCubicMeterPerMinute => baseUnitValue * 60, diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ThermalConductivity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ThermalConductivity.g.cs index 6ad76b3489..57649f3065 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ThermalConductivity.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ThermalConductivity.g.cs @@ -145,7 +145,7 @@ private double GetValueInBaseUnit() { return Unit switch { - ThermalConductivityUnit.BtuPerHourFootFahrenheit => _value * 1.73073467, + ThermalConductivityUnit.BtuPerHourFootFahrenheit => _value * ((1055.05585262 / (0.3048 * 3600)) * 1.8), ThermalConductivityUnit.WattPerMeterKelvin => _value, _ => throw new NotImplementedException($"Can not convert {Unit} to base units.") }; @@ -160,7 +160,7 @@ private double GetValueAs(ThermalConductivityUnit unit) return unit switch { - ThermalConductivityUnit.BtuPerHourFootFahrenheit => baseUnitValue / 1.73073467, + ThermalConductivityUnit.BtuPerHourFootFahrenheit => baseUnitValue / ((1055.05585262 / (0.3048 * 3600)) * 1.8), ThermalConductivityUnit.WattPerMeterKelvin => baseUnitValue, _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.") }; diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Torque.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Torque.g.cs index e01e221060..85de00a66a 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Torque.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Torque.g.cs @@ -381,19 +381,19 @@ private double GetValueInBaseUnit() TorqueUnit.KilonewtonCentimeter => (_value * 0.01) * 1e3d, TorqueUnit.KilonewtonMeter => (_value) * 1e3d, TorqueUnit.KilonewtonMillimeter => (_value * 0.001) * 1e3d, - TorqueUnit.KilopoundForceFoot => (_value * 1.3558179483314) * 1e3d, - TorqueUnit.KilopoundForceInch => (_value * 1.129848290276167e-1) * 1e3d, + TorqueUnit.KilopoundForceFoot => (_value * 4.4482216152605 * 0.3048) * 1e3d, + TorqueUnit.KilopoundForceInch => (_value * 4.4482216152605 * 2.54e-2) * 1e3d, TorqueUnit.MeganewtonCentimeter => (_value * 0.01) * 1e6d, TorqueUnit.MeganewtonMeter => (_value) * 1e6d, TorqueUnit.MeganewtonMillimeter => (_value * 0.001) * 1e6d, - TorqueUnit.MegapoundForceFoot => (_value * 1.3558179483314) * 1e6d, - TorqueUnit.MegapoundForceInch => (_value * 1.129848290276167e-1) * 1e6d, + TorqueUnit.MegapoundForceFoot => (_value * 4.4482216152605 * 0.3048) * 1e6d, + TorqueUnit.MegapoundForceInch => (_value * 4.4482216152605 * 2.54e-2) * 1e6d, TorqueUnit.NewtonCentimeter => _value * 0.01, TorqueUnit.NewtonMeter => _value, TorqueUnit.NewtonMillimeter => _value * 0.001, - TorqueUnit.PoundalFoot => _value * 4.21401100938048e-2, - TorqueUnit.PoundForceFoot => _value * 1.3558179483314, - TorqueUnit.PoundForceInch => _value * 1.129848290276167e-1, + TorqueUnit.PoundalFoot => _value * 0.138254954376 * 0.3048, + TorqueUnit.PoundForceFoot => _value * 4.4482216152605 * 0.3048, + TorqueUnit.PoundForceInch => _value * 4.4482216152605 * 2.54e-2, TorqueUnit.TonneForceCentimeter => _value * 9.80665e1, TorqueUnit.TonneForceMeter => _value * 9.80665e3, TorqueUnit.TonneForceMillimeter => _value * 9.80665, @@ -419,19 +419,19 @@ private double GetValueAs(TorqueUnit unit) TorqueUnit.KilonewtonCentimeter => (baseUnitValue * 100) / 1e3d, TorqueUnit.KilonewtonMeter => (baseUnitValue) / 1e3d, TorqueUnit.KilonewtonMillimeter => (baseUnitValue * 1000) / 1e3d, - TorqueUnit.KilopoundForceFoot => (baseUnitValue / 1.3558179483314) / 1e3d, - TorqueUnit.KilopoundForceInch => (baseUnitValue / 1.129848290276167e-1) / 1e3d, + TorqueUnit.KilopoundForceFoot => (baseUnitValue / (4.4482216152605 * 0.3048)) / 1e3d, + TorqueUnit.KilopoundForceInch => (baseUnitValue / (4.4482216152605 * 2.54e-2)) / 1e3d, TorqueUnit.MeganewtonCentimeter => (baseUnitValue * 100) / 1e6d, TorqueUnit.MeganewtonMeter => (baseUnitValue) / 1e6d, TorqueUnit.MeganewtonMillimeter => (baseUnitValue * 1000) / 1e6d, - TorqueUnit.MegapoundForceFoot => (baseUnitValue / 1.3558179483314) / 1e6d, - TorqueUnit.MegapoundForceInch => (baseUnitValue / 1.129848290276167e-1) / 1e6d, + TorqueUnit.MegapoundForceFoot => (baseUnitValue / (4.4482216152605 * 0.3048)) / 1e6d, + TorqueUnit.MegapoundForceInch => (baseUnitValue / (4.4482216152605 * 2.54e-2)) / 1e6d, TorqueUnit.NewtonCentimeter => baseUnitValue * 100, TorqueUnit.NewtonMeter => baseUnitValue, TorqueUnit.NewtonMillimeter => baseUnitValue * 1000, - TorqueUnit.PoundalFoot => baseUnitValue / 4.21401100938048e-2, - TorqueUnit.PoundForceFoot => baseUnitValue / 1.3558179483314, - TorqueUnit.PoundForceInch => baseUnitValue / 1.129848290276167e-1, + TorqueUnit.PoundalFoot => baseUnitValue / (0.138254954376 * 0.3048), + TorqueUnit.PoundForceFoot => baseUnitValue / (4.4482216152605 * 0.3048), + TorqueUnit.PoundForceInch => baseUnitValue / (4.4482216152605 * 2.54e-2), TorqueUnit.TonneForceCentimeter => baseUnitValue / 9.80665e1, TorqueUnit.TonneForceMeter => baseUnitValue / 9.80665e3, TorqueUnit.TonneForceMillimeter => baseUnitValue / 9.80665, diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Volume.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Volume.g.cs index 931d9ac20b..71a9f8ae2b 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/Volume.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/Volume.g.cs @@ -662,41 +662,41 @@ private double GetValueInBaseUnit() { return Unit switch { - VolumeUnit.AcreFoot => _value / 0.000810714, + VolumeUnit.AcreFoot => _value * 1233.48183754752, VolumeUnit.AuTablespoon => _value * 2e-5, - VolumeUnit.BoardFoot => _value * 2.3597372158e-3, + VolumeUnit.BoardFoot => _value * (0.028316846592 / 12), VolumeUnit.Centiliter => (_value / 1e3) * 1e-2d, VolumeUnit.CubicCentimeter => _value / 1e6, VolumeUnit.CubicDecimeter => _value / 1e3, - VolumeUnit.CubicFoot => _value * 2.8316846592e-2, + VolumeUnit.CubicFoot => _value * 0.028316846592, VolumeUnit.CubicHectometer => _value * 1e6, VolumeUnit.CubicInch => _value * 1.6387064e-5, VolumeUnit.CubicKilometer => _value * 1e9, VolumeUnit.CubicMeter => _value, VolumeUnit.CubicMicrometer => _value / 1e18, - VolumeUnit.CubicMile => _value * 4.16818182544058e9, + VolumeUnit.CubicMile => _value * 4.168181825440579584e9, VolumeUnit.CubicMillimeter => _value / 1e9, - VolumeUnit.CubicYard => _value * 0.764554858, + VolumeUnit.CubicYard => _value * 0.764554857984, VolumeUnit.Decaliter => (_value / 1e3) * 1e1d, VolumeUnit.DecausGallon => (_value * 0.003785411784) * 1e1d, VolumeUnit.Deciliter => (_value / 1e3) * 1e-1d, VolumeUnit.DeciusGallon => (_value * 0.003785411784) * 1e-1d, - VolumeUnit.HectocubicFoot => (_value * 2.8316846592e-2) * 1e2d, + VolumeUnit.HectocubicFoot => (_value * 0.028316846592) * 1e2d, VolumeUnit.HectocubicMeter => (_value) * 1e2d, VolumeUnit.Hectoliter => (_value / 1e3) * 1e2d, VolumeUnit.HectousGallon => (_value * 0.003785411784) * 1e2d, VolumeUnit.ImperialBeerBarrel => _value * 0.16365924, VolumeUnit.ImperialGallon => _value * 0.00454609, - VolumeUnit.ImperialOunce => _value * 2.8413062499962901241875439064617e-5, + VolumeUnit.ImperialOunce => _value * 2.84130625e-5, VolumeUnit.ImperialPint => _value * 5.6826125e-4, VolumeUnit.ImperialQuart => _value * 1.1365225e-3, - VolumeUnit.KilocubicFoot => (_value * 2.8316846592e-2) * 1e3d, + VolumeUnit.KilocubicFoot => (_value * 0.028316846592) * 1e3d, VolumeUnit.KilocubicMeter => (_value) * 1e3d, VolumeUnit.KiloimperialGallon => (_value * 0.00454609) * 1e3d, VolumeUnit.Kiloliter => (_value / 1e3) * 1e3d, VolumeUnit.KilousGallon => (_value * 0.003785411784) * 1e3d, VolumeUnit.Liter => _value / 1e3, - VolumeUnit.MegacubicFoot => (_value * 2.8316846592e-2) * 1e6d, + VolumeUnit.MegacubicFoot => (_value * 0.028316846592) * 1e6d, VolumeUnit.MegaimperialGallon => (_value * 0.00454609) * 1e6d, VolumeUnit.Megaliter => (_value / 1e3) * 1e6d, VolumeUnit.MegausGallon => (_value * 0.003785411784) * 1e6d, @@ -707,11 +707,11 @@ private double GetValueInBaseUnit() VolumeUnit.Nanoliter => (_value / 1e3) * 1e-9d, VolumeUnit.OilBarrel => _value * 0.158987294928, VolumeUnit.UkTablespoon => _value * 1.5e-5, - VolumeUnit.UsBeerBarrel => _value * 0.1173477658, + VolumeUnit.UsBeerBarrel => _value * 0.117347765304, VolumeUnit.UsCustomaryCup => _value * 0.0002365882365, VolumeUnit.UsGallon => _value * 0.003785411784, VolumeUnit.UsLegalCup => _value * 0.00024, - VolumeUnit.UsOunce => _value * 2.957352956253760505068307980135e-5, + VolumeUnit.UsOunce => _value * 2.95735295625e-5, VolumeUnit.UsPint => _value * 4.73176473e-4, VolumeUnit.UsQuart => _value * 9.46352946e-4, VolumeUnit.UsTablespoon => _value * 1.478676478125e-5, @@ -729,41 +729,41 @@ private double GetValueAs(VolumeUnit unit) return unit switch { - VolumeUnit.AcreFoot => baseUnitValue * 0.000810714, + VolumeUnit.AcreFoot => baseUnitValue / 1233.48183754752, VolumeUnit.AuTablespoon => baseUnitValue / 2e-5, - VolumeUnit.BoardFoot => baseUnitValue / 2.3597372158e-3, + VolumeUnit.BoardFoot => baseUnitValue / (0.028316846592 / 12), VolumeUnit.Centiliter => (baseUnitValue * 1e3) / 1e-2d, VolumeUnit.CubicCentimeter => baseUnitValue * 1e6, VolumeUnit.CubicDecimeter => baseUnitValue * 1e3, - VolumeUnit.CubicFoot => baseUnitValue / 2.8316846592e-2, + VolumeUnit.CubicFoot => baseUnitValue / 0.028316846592, VolumeUnit.CubicHectometer => baseUnitValue / 1e6, VolumeUnit.CubicInch => baseUnitValue / 1.6387064e-5, VolumeUnit.CubicKilometer => baseUnitValue / 1e9, VolumeUnit.CubicMeter => baseUnitValue, VolumeUnit.CubicMicrometer => baseUnitValue * 1e18, - VolumeUnit.CubicMile => baseUnitValue / 4.16818182544058e9, + VolumeUnit.CubicMile => baseUnitValue / 4.168181825440579584e9, VolumeUnit.CubicMillimeter => baseUnitValue * 1e9, - VolumeUnit.CubicYard => baseUnitValue / 0.764554858, + VolumeUnit.CubicYard => baseUnitValue / 0.764554857984, VolumeUnit.Decaliter => (baseUnitValue * 1e3) / 1e1d, VolumeUnit.DecausGallon => (baseUnitValue / 0.003785411784) / 1e1d, VolumeUnit.Deciliter => (baseUnitValue * 1e3) / 1e-1d, VolumeUnit.DeciusGallon => (baseUnitValue / 0.003785411784) / 1e-1d, - VolumeUnit.HectocubicFoot => (baseUnitValue / 2.8316846592e-2) / 1e2d, + VolumeUnit.HectocubicFoot => (baseUnitValue / 0.028316846592) / 1e2d, VolumeUnit.HectocubicMeter => (baseUnitValue) / 1e2d, VolumeUnit.Hectoliter => (baseUnitValue * 1e3) / 1e2d, VolumeUnit.HectousGallon => (baseUnitValue / 0.003785411784) / 1e2d, VolumeUnit.ImperialBeerBarrel => baseUnitValue / 0.16365924, VolumeUnit.ImperialGallon => baseUnitValue / 0.00454609, - VolumeUnit.ImperialOunce => baseUnitValue / 2.8413062499962901241875439064617e-5, + VolumeUnit.ImperialOunce => baseUnitValue / 2.84130625e-5, VolumeUnit.ImperialPint => baseUnitValue / 5.6826125e-4, VolumeUnit.ImperialQuart => baseUnitValue / 1.1365225e-3, - VolumeUnit.KilocubicFoot => (baseUnitValue / 2.8316846592e-2) / 1e3d, + VolumeUnit.KilocubicFoot => (baseUnitValue / 0.028316846592) / 1e3d, VolumeUnit.KilocubicMeter => (baseUnitValue) / 1e3d, VolumeUnit.KiloimperialGallon => (baseUnitValue / 0.00454609) / 1e3d, VolumeUnit.Kiloliter => (baseUnitValue * 1e3) / 1e3d, VolumeUnit.KilousGallon => (baseUnitValue / 0.003785411784) / 1e3d, VolumeUnit.Liter => baseUnitValue * 1e3, - VolumeUnit.MegacubicFoot => (baseUnitValue / 2.8316846592e-2) / 1e6d, + VolumeUnit.MegacubicFoot => (baseUnitValue / 0.028316846592) / 1e6d, VolumeUnit.MegaimperialGallon => (baseUnitValue / 0.00454609) / 1e6d, VolumeUnit.Megaliter => (baseUnitValue * 1e3) / 1e6d, VolumeUnit.MegausGallon => (baseUnitValue / 0.003785411784) / 1e6d, @@ -774,11 +774,11 @@ private double GetValueAs(VolumeUnit unit) VolumeUnit.Nanoliter => (baseUnitValue * 1e3) / 1e-9d, VolumeUnit.OilBarrel => baseUnitValue / 0.158987294928, VolumeUnit.UkTablespoon => baseUnitValue / 1.5e-5, - VolumeUnit.UsBeerBarrel => baseUnitValue / 0.1173477658, + VolumeUnit.UsBeerBarrel => baseUnitValue / 0.117347765304, VolumeUnit.UsCustomaryCup => baseUnitValue / 0.0002365882365, VolumeUnit.UsGallon => baseUnitValue / 0.003785411784, VolumeUnit.UsLegalCup => baseUnitValue / 0.00024, - VolumeUnit.UsOunce => baseUnitValue / 2.957352956253760505068307980135e-5, + VolumeUnit.UsOunce => baseUnitValue / 2.95735295625e-5, VolumeUnit.UsPint => baseUnitValue / 4.73176473e-4, VolumeUnit.UsQuart => baseUnitValue / 9.46352946e-4, VolumeUnit.UsTablespoon => baseUnitValue / 1.478676478125e-5, diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumeFlow.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumeFlow.g.cs index 2c3b41d20d..0353917ddb 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumeFlow.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumeFlow.g.cs @@ -872,81 +872,81 @@ private double GetValueInBaseUnit() { return Unit switch { - VolumeFlowUnit.AcreFootPerDay => _value / 70.0457, - VolumeFlowUnit.AcreFootPerHour => _value / 2.91857, - VolumeFlowUnit.AcreFootPerMinute => _value / 0.0486427916, - VolumeFlowUnit.AcreFootPerSecond => _value / 0.000810713194, - VolumeFlowUnit.CentiliterPerDay => (_value / 86400000) * 1e-2d, - VolumeFlowUnit.CentiliterPerHour => (_value / 3600000.000) * 1e-2d, - VolumeFlowUnit.CentiliterPerMinute => (_value / 60000.00000) * 1e-2d, + VolumeFlowUnit.AcreFootPerDay => _value * 1233.48183754752 / 86400, + VolumeFlowUnit.AcreFootPerHour => _value * 1233.48183754752 / 3600, + VolumeFlowUnit.AcreFootPerMinute => _value * 1233.48183754752 / 60, + VolumeFlowUnit.AcreFootPerSecond => _value * 1233.48183754752, + VolumeFlowUnit.CentiliterPerDay => (_value / (1000 * 86400)) * 1e-2d, + VolumeFlowUnit.CentiliterPerHour => (_value / (1000 * 3600)) * 1e-2d, + VolumeFlowUnit.CentiliterPerMinute => (_value / (1000 * 60)) * 1e-2d, VolumeFlowUnit.CentiliterPerSecond => (_value / 1000) * 1e-2d, - VolumeFlowUnit.CubicCentimeterPerMinute => _value * 1.6666666666667e-8, + VolumeFlowUnit.CubicCentimeterPerMinute => _value * 1e-6 / 60, VolumeFlowUnit.CubicDecimeterPerMinute => _value / 60000.00000, - VolumeFlowUnit.CubicFootPerHour => _value * 7.8657907199999087346816086183876e-6, - VolumeFlowUnit.CubicFootPerMinute => _value / 2118.88000326, - VolumeFlowUnit.CubicFootPerSecond => _value / 35.314666721, + VolumeFlowUnit.CubicFootPerHour => _value * 0.028316846592 / 3600, + VolumeFlowUnit.CubicFootPerMinute => _value * 0.028316846592 / 60, + VolumeFlowUnit.CubicFootPerSecond => _value * 0.028316846592, VolumeFlowUnit.CubicMeterPerDay => _value / 86400, VolumeFlowUnit.CubicMeterPerHour => _value / 3600, VolumeFlowUnit.CubicMeterPerMinute => _value / 60, VolumeFlowUnit.CubicMeterPerSecond => _value, VolumeFlowUnit.CubicMillimeterPerSecond => _value * 1e-9, - VolumeFlowUnit.CubicYardPerDay => _value / 113007, - VolumeFlowUnit.CubicYardPerHour => _value * 2.1237634944E-4, - VolumeFlowUnit.CubicYardPerMinute => _value * 0.0127425809664, + VolumeFlowUnit.CubicYardPerDay => _value * 0.764554857984 / 86400, + VolumeFlowUnit.CubicYardPerHour => _value * 0.764554857984 / 3600, + VolumeFlowUnit.CubicYardPerMinute => _value * 0.764554857984 / 60, VolumeFlowUnit.CubicYardPerSecond => _value * 0.764554857984, - VolumeFlowUnit.DecaliterPerDay => (_value / 86400000) * 1e1d, - VolumeFlowUnit.DecaliterPerHour => (_value / 3600000.000) * 1e1d, - VolumeFlowUnit.DecaliterPerMinute => (_value / 60000.00000) * 1e1d, + VolumeFlowUnit.DecaliterPerDay => (_value / (1000 * 86400)) * 1e1d, + VolumeFlowUnit.DecaliterPerHour => (_value / (1000 * 3600)) * 1e1d, + VolumeFlowUnit.DecaliterPerMinute => (_value / (1000 * 60)) * 1e1d, VolumeFlowUnit.DecaliterPerSecond => (_value / 1000) * 1e1d, - VolumeFlowUnit.DeciliterPerDay => (_value / 86400000) * 1e-1d, - VolumeFlowUnit.DeciliterPerHour => (_value / 3600000.000) * 1e-1d, - VolumeFlowUnit.DeciliterPerMinute => (_value / 60000.00000) * 1e-1d, + VolumeFlowUnit.DeciliterPerDay => (_value / (1000 * 86400)) * 1e-1d, + VolumeFlowUnit.DeciliterPerHour => (_value / (1000 * 3600)) * 1e-1d, + VolumeFlowUnit.DeciliterPerMinute => (_value / (1000 * 60)) * 1e-1d, VolumeFlowUnit.DeciliterPerSecond => (_value / 1000) * 1e-1d, - VolumeFlowUnit.HectoliterPerDay => (_value / 86400000) * 1e2d, - VolumeFlowUnit.HectoliterPerHour => (_value / 3600000.000) * 1e2d, - VolumeFlowUnit.HectoliterPerMinute => (_value / 60000.00000) * 1e2d, + VolumeFlowUnit.HectoliterPerDay => (_value / (1000 * 86400)) * 1e2d, + VolumeFlowUnit.HectoliterPerHour => (_value / (1000 * 3600)) * 1e2d, + VolumeFlowUnit.HectoliterPerMinute => (_value / (1000 * 60)) * 1e2d, VolumeFlowUnit.HectoliterPerSecond => (_value / 1000) * 1e2d, - VolumeFlowUnit.KiloliterPerDay => (_value / 86400000) * 1e3d, - VolumeFlowUnit.KiloliterPerHour => (_value / 3600000.000) * 1e3d, - VolumeFlowUnit.KiloliterPerMinute => (_value / 60000.00000) * 1e3d, + VolumeFlowUnit.KiloliterPerDay => (_value / (1000 * 86400)) * 1e3d, + VolumeFlowUnit.KiloliterPerHour => (_value / (1000 * 3600)) * 1e3d, + VolumeFlowUnit.KiloliterPerMinute => (_value / (1000 * 60)) * 1e3d, VolumeFlowUnit.KiloliterPerSecond => (_value / 1000) * 1e3d, - VolumeFlowUnit.KilousGallonPerMinute => _value / 15.850323141489, - VolumeFlowUnit.LiterPerDay => _value / 86400000, - VolumeFlowUnit.LiterPerHour => _value / 3600000.000, - VolumeFlowUnit.LiterPerMinute => _value / 60000.00000, + VolumeFlowUnit.KilousGallonPerMinute => _value * 1000 * 0.003785411784 / 60, + VolumeFlowUnit.LiterPerDay => _value / (1000 * 86400), + VolumeFlowUnit.LiterPerHour => _value / (1000 * 3600), + VolumeFlowUnit.LiterPerMinute => _value / (1000 * 60), VolumeFlowUnit.LiterPerSecond => _value / 1000, - VolumeFlowUnit.MegaliterPerDay => (_value / 86400000) * 1e6d, - VolumeFlowUnit.MegaliterPerHour => (_value / 3600000.000) * 1e6d, - VolumeFlowUnit.MegaliterPerMinute => (_value / 60000.00000) * 1e6d, + VolumeFlowUnit.MegaliterPerDay => (_value / (1000 * 86400)) * 1e6d, + VolumeFlowUnit.MegaliterPerHour => (_value / (1000 * 3600)) * 1e6d, + VolumeFlowUnit.MegaliterPerMinute => (_value / (1000 * 60)) * 1e6d, VolumeFlowUnit.MegaliterPerSecond => (_value / 1000) * 1e6d, - VolumeFlowUnit.MegaukGallonPerDay => (_value / 19005304) * 1e6d, - VolumeFlowUnit.MegaukGallonPerSecond => (_value / 219.969) * 1e6d, - VolumeFlowUnit.MegausGallonPerDay => (_value / 22824465.227) * 1e6d, - VolumeFlowUnit.MicroliterPerDay => (_value / 86400000) * 1e-6d, - VolumeFlowUnit.MicroliterPerHour => (_value / 3600000.000) * 1e-6d, - VolumeFlowUnit.MicroliterPerMinute => (_value / 60000.00000) * 1e-6d, + VolumeFlowUnit.MegaukGallonPerDay => (_value * 0.00454609 / 86400) * 1e6d, + VolumeFlowUnit.MegaukGallonPerSecond => (_value * 0.00454609) * 1e6d, + VolumeFlowUnit.MegausGallonPerDay => (_value * 0.003785411784 / 86400) * 1e6d, + VolumeFlowUnit.MicroliterPerDay => (_value / (1000 * 86400)) * 1e-6d, + VolumeFlowUnit.MicroliterPerHour => (_value / (1000 * 3600)) * 1e-6d, + VolumeFlowUnit.MicroliterPerMinute => (_value / (1000 * 60)) * 1e-6d, VolumeFlowUnit.MicroliterPerSecond => (_value / 1000) * 1e-6d, - VolumeFlowUnit.MilliliterPerDay => (_value / 86400000) * 1e-3d, - VolumeFlowUnit.MilliliterPerHour => (_value / 3600000.000) * 1e-3d, - VolumeFlowUnit.MilliliterPerMinute => (_value / 60000.00000) * 1e-3d, + VolumeFlowUnit.MilliliterPerDay => (_value / (1000 * 86400)) * 1e-3d, + VolumeFlowUnit.MilliliterPerHour => (_value / (1000 * 3600)) * 1e-3d, + VolumeFlowUnit.MilliliterPerMinute => (_value / (1000 * 60)) * 1e-3d, VolumeFlowUnit.MilliliterPerSecond => (_value / 1000) * 1e-3d, - VolumeFlowUnit.MillionUsGallonPerDay => _value / 22.824465227, - VolumeFlowUnit.NanoliterPerDay => (_value / 86400000) * 1e-9d, - VolumeFlowUnit.NanoliterPerHour => (_value / 3600000.000) * 1e-9d, - VolumeFlowUnit.NanoliterPerMinute => (_value / 60000.00000) * 1e-9d, + VolumeFlowUnit.MillionUsGallonPerDay => _value * 1e6 * 0.003785411784 / 86400, + VolumeFlowUnit.NanoliterPerDay => (_value / (1000 * 86400)) * 1e-9d, + VolumeFlowUnit.NanoliterPerHour => (_value / (1000 * 3600)) * 1e-9d, + VolumeFlowUnit.NanoliterPerMinute => (_value / (1000 * 60)) * 1e-9d, VolumeFlowUnit.NanoliterPerSecond => (_value / 1000) * 1e-9d, - VolumeFlowUnit.OilBarrelPerDay => _value * 1.8401307283333333333333333333333e-6, - VolumeFlowUnit.OilBarrelPerHour => _value * 4.41631375e-5, - VolumeFlowUnit.OilBarrelPerMinute => _value * 2.64978825e-3, - VolumeFlowUnit.OilBarrelPerSecond => _value / 6.28981, - VolumeFlowUnit.UkGallonPerDay => _value / 19005304, - VolumeFlowUnit.UkGallonPerHour => _value / 791887.667, - VolumeFlowUnit.UkGallonPerMinute => _value / 13198.2, - VolumeFlowUnit.UkGallonPerSecond => _value / 219.969, - VolumeFlowUnit.UsGallonPerDay => _value / 22824465.227, - VolumeFlowUnit.UsGallonPerHour => _value / 951019.38848933424, - VolumeFlowUnit.UsGallonPerMinute => _value / 15850.323141489, - VolumeFlowUnit.UsGallonPerSecond => _value / 264.1720523581484, + VolumeFlowUnit.OilBarrelPerDay => _value * 0.158987294928 / 86400, + VolumeFlowUnit.OilBarrelPerHour => _value * 0.158987294928 / 3600, + VolumeFlowUnit.OilBarrelPerMinute => _value * 0.158987294928 / 60, + VolumeFlowUnit.OilBarrelPerSecond => _value * 0.158987294928, + VolumeFlowUnit.UkGallonPerDay => _value * 0.00454609 / 86400, + VolumeFlowUnit.UkGallonPerHour => _value * 0.00454609 / 3600, + VolumeFlowUnit.UkGallonPerMinute => _value * 0.00454609 / 60, + VolumeFlowUnit.UkGallonPerSecond => _value * 0.00454609, + VolumeFlowUnit.UsGallonPerDay => _value * 0.003785411784 / 86400, + VolumeFlowUnit.UsGallonPerHour => _value * 0.003785411784 / 3600, + VolumeFlowUnit.UsGallonPerMinute => _value * 0.003785411784 / 60, + VolumeFlowUnit.UsGallonPerSecond => _value * 0.003785411784, _ => throw new NotImplementedException($"Can not convert {Unit} to base units.") }; } @@ -960,81 +960,81 @@ private double GetValueAs(VolumeFlowUnit unit) return unit switch { - VolumeFlowUnit.AcreFootPerDay => baseUnitValue * 70.0457, - VolumeFlowUnit.AcreFootPerHour => baseUnitValue * 2.91857, - VolumeFlowUnit.AcreFootPerMinute => baseUnitValue * 0.0486427916, - VolumeFlowUnit.AcreFootPerSecond => baseUnitValue * 0.000810713194, - VolumeFlowUnit.CentiliterPerDay => (baseUnitValue * 86400000) / 1e-2d, - VolumeFlowUnit.CentiliterPerHour => (baseUnitValue * 3600000.000) / 1e-2d, - VolumeFlowUnit.CentiliterPerMinute => (baseUnitValue * 60000.00000) / 1e-2d, + VolumeFlowUnit.AcreFootPerDay => baseUnitValue / (1233.48183754752 / 86400), + VolumeFlowUnit.AcreFootPerHour => baseUnitValue / (1233.48183754752 / 3600), + VolumeFlowUnit.AcreFootPerMinute => baseUnitValue / (1233.48183754752 / 60), + VolumeFlowUnit.AcreFootPerSecond => baseUnitValue / 1233.48183754752, + VolumeFlowUnit.CentiliterPerDay => (baseUnitValue * (1000 * 86400)) / 1e-2d, + VolumeFlowUnit.CentiliterPerHour => (baseUnitValue * (1000 * 3600)) / 1e-2d, + VolumeFlowUnit.CentiliterPerMinute => (baseUnitValue * (1000 * 60)) / 1e-2d, VolumeFlowUnit.CentiliterPerSecond => (baseUnitValue * 1000) / 1e-2d, - VolumeFlowUnit.CubicCentimeterPerMinute => baseUnitValue / 1.6666666666667e-8, + VolumeFlowUnit.CubicCentimeterPerMinute => baseUnitValue / (1e-6 / 60), VolumeFlowUnit.CubicDecimeterPerMinute => baseUnitValue * 60000.00000, - VolumeFlowUnit.CubicFootPerHour => baseUnitValue / 7.8657907199999087346816086183876e-6, - VolumeFlowUnit.CubicFootPerMinute => baseUnitValue * 2118.88000326, - VolumeFlowUnit.CubicFootPerSecond => baseUnitValue * 35.314666721, + VolumeFlowUnit.CubicFootPerHour => baseUnitValue / (0.028316846592 / 3600), + VolumeFlowUnit.CubicFootPerMinute => baseUnitValue / (0.028316846592 / 60), + VolumeFlowUnit.CubicFootPerSecond => baseUnitValue / 0.028316846592, VolumeFlowUnit.CubicMeterPerDay => baseUnitValue * 86400, VolumeFlowUnit.CubicMeterPerHour => baseUnitValue * 3600, VolumeFlowUnit.CubicMeterPerMinute => baseUnitValue * 60, VolumeFlowUnit.CubicMeterPerSecond => baseUnitValue, VolumeFlowUnit.CubicMillimeterPerSecond => baseUnitValue / 1e-9, - VolumeFlowUnit.CubicYardPerDay => baseUnitValue * 113007, - VolumeFlowUnit.CubicYardPerHour => baseUnitValue / 2.1237634944E-4, - VolumeFlowUnit.CubicYardPerMinute => baseUnitValue / 0.0127425809664, + VolumeFlowUnit.CubicYardPerDay => baseUnitValue / (0.764554857984 / 86400), + VolumeFlowUnit.CubicYardPerHour => baseUnitValue / (0.764554857984 / 3600), + VolumeFlowUnit.CubicYardPerMinute => baseUnitValue / (0.764554857984 / 60), VolumeFlowUnit.CubicYardPerSecond => baseUnitValue / 0.764554857984, - VolumeFlowUnit.DecaliterPerDay => (baseUnitValue * 86400000) / 1e1d, - VolumeFlowUnit.DecaliterPerHour => (baseUnitValue * 3600000.000) / 1e1d, - VolumeFlowUnit.DecaliterPerMinute => (baseUnitValue * 60000.00000) / 1e1d, + VolumeFlowUnit.DecaliterPerDay => (baseUnitValue * (1000 * 86400)) / 1e1d, + VolumeFlowUnit.DecaliterPerHour => (baseUnitValue * (1000 * 3600)) / 1e1d, + VolumeFlowUnit.DecaliterPerMinute => (baseUnitValue * (1000 * 60)) / 1e1d, VolumeFlowUnit.DecaliterPerSecond => (baseUnitValue * 1000) / 1e1d, - VolumeFlowUnit.DeciliterPerDay => (baseUnitValue * 86400000) / 1e-1d, - VolumeFlowUnit.DeciliterPerHour => (baseUnitValue * 3600000.000) / 1e-1d, - VolumeFlowUnit.DeciliterPerMinute => (baseUnitValue * 60000.00000) / 1e-1d, + VolumeFlowUnit.DeciliterPerDay => (baseUnitValue * (1000 * 86400)) / 1e-1d, + VolumeFlowUnit.DeciliterPerHour => (baseUnitValue * (1000 * 3600)) / 1e-1d, + VolumeFlowUnit.DeciliterPerMinute => (baseUnitValue * (1000 * 60)) / 1e-1d, VolumeFlowUnit.DeciliterPerSecond => (baseUnitValue * 1000) / 1e-1d, - VolumeFlowUnit.HectoliterPerDay => (baseUnitValue * 86400000) / 1e2d, - VolumeFlowUnit.HectoliterPerHour => (baseUnitValue * 3600000.000) / 1e2d, - VolumeFlowUnit.HectoliterPerMinute => (baseUnitValue * 60000.00000) / 1e2d, + VolumeFlowUnit.HectoliterPerDay => (baseUnitValue * (1000 * 86400)) / 1e2d, + VolumeFlowUnit.HectoliterPerHour => (baseUnitValue * (1000 * 3600)) / 1e2d, + VolumeFlowUnit.HectoliterPerMinute => (baseUnitValue * (1000 * 60)) / 1e2d, VolumeFlowUnit.HectoliterPerSecond => (baseUnitValue * 1000) / 1e2d, - VolumeFlowUnit.KiloliterPerDay => (baseUnitValue * 86400000) / 1e3d, - VolumeFlowUnit.KiloliterPerHour => (baseUnitValue * 3600000.000) / 1e3d, - VolumeFlowUnit.KiloliterPerMinute => (baseUnitValue * 60000.00000) / 1e3d, + VolumeFlowUnit.KiloliterPerDay => (baseUnitValue * (1000 * 86400)) / 1e3d, + VolumeFlowUnit.KiloliterPerHour => (baseUnitValue * (1000 * 3600)) / 1e3d, + VolumeFlowUnit.KiloliterPerMinute => (baseUnitValue * (1000 * 60)) / 1e3d, VolumeFlowUnit.KiloliterPerSecond => (baseUnitValue * 1000) / 1e3d, - VolumeFlowUnit.KilousGallonPerMinute => baseUnitValue * 15.850323141489, - VolumeFlowUnit.LiterPerDay => baseUnitValue * 86400000, - VolumeFlowUnit.LiterPerHour => baseUnitValue * 3600000.000, - VolumeFlowUnit.LiterPerMinute => baseUnitValue * 60000.00000, + VolumeFlowUnit.KilousGallonPerMinute => baseUnitValue / (1000 * 0.003785411784 / 60), + VolumeFlowUnit.LiterPerDay => baseUnitValue * (1000 * 86400), + VolumeFlowUnit.LiterPerHour => baseUnitValue * (1000 * 3600), + VolumeFlowUnit.LiterPerMinute => baseUnitValue * (1000 * 60), VolumeFlowUnit.LiterPerSecond => baseUnitValue * 1000, - VolumeFlowUnit.MegaliterPerDay => (baseUnitValue * 86400000) / 1e6d, - VolumeFlowUnit.MegaliterPerHour => (baseUnitValue * 3600000.000) / 1e6d, - VolumeFlowUnit.MegaliterPerMinute => (baseUnitValue * 60000.00000) / 1e6d, + VolumeFlowUnit.MegaliterPerDay => (baseUnitValue * (1000 * 86400)) / 1e6d, + VolumeFlowUnit.MegaliterPerHour => (baseUnitValue * (1000 * 3600)) / 1e6d, + VolumeFlowUnit.MegaliterPerMinute => (baseUnitValue * (1000 * 60)) / 1e6d, VolumeFlowUnit.MegaliterPerSecond => (baseUnitValue * 1000) / 1e6d, - VolumeFlowUnit.MegaukGallonPerDay => (baseUnitValue * 19005304) / 1e6d, - VolumeFlowUnit.MegaukGallonPerSecond => (baseUnitValue * 219.969) / 1e6d, - VolumeFlowUnit.MegausGallonPerDay => (baseUnitValue * 22824465.227) / 1e6d, - VolumeFlowUnit.MicroliterPerDay => (baseUnitValue * 86400000) / 1e-6d, - VolumeFlowUnit.MicroliterPerHour => (baseUnitValue * 3600000.000) / 1e-6d, - VolumeFlowUnit.MicroliterPerMinute => (baseUnitValue * 60000.00000) / 1e-6d, + VolumeFlowUnit.MegaukGallonPerDay => (baseUnitValue / (0.00454609 / 86400)) / 1e6d, + VolumeFlowUnit.MegaukGallonPerSecond => (baseUnitValue / 0.00454609) / 1e6d, + VolumeFlowUnit.MegausGallonPerDay => (baseUnitValue / (0.003785411784 / 86400)) / 1e6d, + VolumeFlowUnit.MicroliterPerDay => (baseUnitValue * (1000 * 86400)) / 1e-6d, + VolumeFlowUnit.MicroliterPerHour => (baseUnitValue * (1000 * 3600)) / 1e-6d, + VolumeFlowUnit.MicroliterPerMinute => (baseUnitValue * (1000 * 60)) / 1e-6d, VolumeFlowUnit.MicroliterPerSecond => (baseUnitValue * 1000) / 1e-6d, - VolumeFlowUnit.MilliliterPerDay => (baseUnitValue * 86400000) / 1e-3d, - VolumeFlowUnit.MilliliterPerHour => (baseUnitValue * 3600000.000) / 1e-3d, - VolumeFlowUnit.MilliliterPerMinute => (baseUnitValue * 60000.00000) / 1e-3d, + VolumeFlowUnit.MilliliterPerDay => (baseUnitValue * (1000 * 86400)) / 1e-3d, + VolumeFlowUnit.MilliliterPerHour => (baseUnitValue * (1000 * 3600)) / 1e-3d, + VolumeFlowUnit.MilliliterPerMinute => (baseUnitValue * (1000 * 60)) / 1e-3d, VolumeFlowUnit.MilliliterPerSecond => (baseUnitValue * 1000) / 1e-3d, - VolumeFlowUnit.MillionUsGallonPerDay => baseUnitValue * 22.824465227, - VolumeFlowUnit.NanoliterPerDay => (baseUnitValue * 86400000) / 1e-9d, - VolumeFlowUnit.NanoliterPerHour => (baseUnitValue * 3600000.000) / 1e-9d, - VolumeFlowUnit.NanoliterPerMinute => (baseUnitValue * 60000.00000) / 1e-9d, + VolumeFlowUnit.MillionUsGallonPerDay => baseUnitValue / (1e6 * 0.003785411784 / 86400), + VolumeFlowUnit.NanoliterPerDay => (baseUnitValue * (1000 * 86400)) / 1e-9d, + VolumeFlowUnit.NanoliterPerHour => (baseUnitValue * (1000 * 3600)) / 1e-9d, + VolumeFlowUnit.NanoliterPerMinute => (baseUnitValue * (1000 * 60)) / 1e-9d, VolumeFlowUnit.NanoliterPerSecond => (baseUnitValue * 1000) / 1e-9d, - VolumeFlowUnit.OilBarrelPerDay => baseUnitValue / 1.8401307283333333333333333333333e-6, - VolumeFlowUnit.OilBarrelPerHour => baseUnitValue / 4.41631375e-5, - VolumeFlowUnit.OilBarrelPerMinute => baseUnitValue / 2.64978825e-3, - VolumeFlowUnit.OilBarrelPerSecond => baseUnitValue * 6.28981, - VolumeFlowUnit.UkGallonPerDay => baseUnitValue * 19005304, - VolumeFlowUnit.UkGallonPerHour => baseUnitValue * 791887.667, - VolumeFlowUnit.UkGallonPerMinute => baseUnitValue * 13198.2, - VolumeFlowUnit.UkGallonPerSecond => baseUnitValue * 219.969, - VolumeFlowUnit.UsGallonPerDay => baseUnitValue * 22824465.227, - VolumeFlowUnit.UsGallonPerHour => baseUnitValue * 951019.38848933424, - VolumeFlowUnit.UsGallonPerMinute => baseUnitValue * 15850.323141489, - VolumeFlowUnit.UsGallonPerSecond => baseUnitValue * 264.1720523581484, + VolumeFlowUnit.OilBarrelPerDay => baseUnitValue / (0.158987294928 / 86400), + VolumeFlowUnit.OilBarrelPerHour => baseUnitValue / (0.158987294928 / 3600), + VolumeFlowUnit.OilBarrelPerMinute => baseUnitValue / (0.158987294928 / 60), + VolumeFlowUnit.OilBarrelPerSecond => baseUnitValue / 0.158987294928, + VolumeFlowUnit.UkGallonPerDay => baseUnitValue / (0.00454609 / 86400), + VolumeFlowUnit.UkGallonPerHour => baseUnitValue / (0.00454609 / 3600), + VolumeFlowUnit.UkGallonPerMinute => baseUnitValue / (0.00454609 / 60), + VolumeFlowUnit.UkGallonPerSecond => baseUnitValue / 0.00454609, + VolumeFlowUnit.UsGallonPerDay => baseUnitValue / (0.003785411784 / 86400), + VolumeFlowUnit.UsGallonPerHour => baseUnitValue / (0.003785411784 / 3600), + VolumeFlowUnit.UsGallonPerMinute => baseUnitValue / (0.003785411784 / 60), + VolumeFlowUnit.UsGallonPerSecond => baseUnitValue / 0.003785411784, _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.") }; } diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumeFlowPerArea.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumeFlowPerArea.g.cs index c7490d60ac..3d4fd77881 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumeFlowPerArea.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumeFlowPerArea.g.cs @@ -142,7 +142,7 @@ private double GetValueInBaseUnit() { return Unit switch { - VolumeFlowPerAreaUnit.CubicFootPerMinutePerSquareFoot => _value / 196.850394, + VolumeFlowPerAreaUnit.CubicFootPerMinutePerSquareFoot => _value * (0.028316846592 / 60) / 9.290304e-2, VolumeFlowPerAreaUnit.CubicMeterPerSecondPerSquareMeter => _value, _ => throw new NotImplementedException($"Can not convert {Unit} to base units.") }; @@ -157,7 +157,7 @@ private double GetValueAs(VolumeFlowPerAreaUnit unit) return unit switch { - VolumeFlowPerAreaUnit.CubicFootPerMinutePerSquareFoot => baseUnitValue * 196.850394, + VolumeFlowPerAreaUnit.CubicFootPerMinutePerSquareFoot => baseUnitValue * 9.290304e-2 / (0.028316846592 / 60), VolumeFlowPerAreaUnit.CubicMeterPerSecondPerSquareMeter => baseUnitValue, _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.") }; diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumePerLength.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumePerLength.g.cs index 4fefcf2c76..b37578bc06 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumePerLength.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/VolumePerLength.g.cs @@ -213,14 +213,14 @@ private double GetValueInBaseUnit() return Unit switch { VolumePerLengthUnit.CubicMeterPerMeter => _value, - VolumePerLengthUnit.CubicYardPerFoot => _value * 2.50838208, - VolumePerLengthUnit.CubicYardPerUsSurveyFoot => _value * 2.50837706323584, - VolumePerLengthUnit.ImperialGallonPerMile => _value / (1000 * 1609.344 / 4.54609), + VolumePerLengthUnit.CubicYardPerFoot => _value * 0.764554857984 / 0.3048, + VolumePerLengthUnit.CubicYardPerUsSurveyFoot => _value * 0.764554857984 * 3937 / 1200, + VolumePerLengthUnit.ImperialGallonPerMile => _value * 0.00454609 / 1609.344, VolumePerLengthUnit.LiterPerKilometer => _value / 1e6, VolumePerLengthUnit.LiterPerMeter => _value / 1000, VolumePerLengthUnit.LiterPerMillimeter => _value, - VolumePerLengthUnit.OilBarrelPerFoot => _value / 1.91713408, - VolumePerLengthUnit.UsGallonPerMile => _value / (1000 * 1609.344 / 3.785411784), + VolumePerLengthUnit.OilBarrelPerFoot => _value * 0.158987294928 / 0.3048, + VolumePerLengthUnit.UsGallonPerMile => _value * 0.003785411784 / 1609.344, _ => throw new NotImplementedException($"Can not convert {Unit} to base units.") }; } @@ -235,14 +235,14 @@ private double GetValueAs(VolumePerLengthUnit unit) return unit switch { VolumePerLengthUnit.CubicMeterPerMeter => baseUnitValue, - VolumePerLengthUnit.CubicYardPerFoot => baseUnitValue / 2.50838208, - VolumePerLengthUnit.CubicYardPerUsSurveyFoot => baseUnitValue / 2.50837706323584, - VolumePerLengthUnit.ImperialGallonPerMile => baseUnitValue * (1000 * 1609.344 / 4.54609), + VolumePerLengthUnit.CubicYardPerFoot => baseUnitValue * 0.3048 / 0.764554857984, + VolumePerLengthUnit.CubicYardPerUsSurveyFoot => baseUnitValue * 1200 / (0.764554857984 * 3937), + VolumePerLengthUnit.ImperialGallonPerMile => baseUnitValue * 1609.344 / 0.00454609, VolumePerLengthUnit.LiterPerKilometer => baseUnitValue * 1e6, VolumePerLengthUnit.LiterPerMeter => baseUnitValue * 1000, VolumePerLengthUnit.LiterPerMillimeter => baseUnitValue, - VolumePerLengthUnit.OilBarrelPerFoot => baseUnitValue * 1.91713408, - VolumePerLengthUnit.UsGallonPerMile => baseUnitValue * (1000 * 1609.344 / 3.785411784), + VolumePerLengthUnit.OilBarrelPerFoot => baseUnitValue * 0.3048 / 0.158987294928, + VolumePerLengthUnit.UsGallonPerMile => baseUnitValue * 1609.344 / 0.003785411784, _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.") }; } diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/WarpingMomentOfInertia.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/WarpingMomentOfInertia.g.cs index 370afa1fda..0c6b8421dd 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/WarpingMomentOfInertia.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/WarpingMomentOfInertia.g.cs @@ -184,8 +184,8 @@ private double GetValueInBaseUnit() { WarpingMomentOfInertiaUnit.CentimeterToTheSixth => _value / 1e12, WarpingMomentOfInertiaUnit.DecimeterToTheSixth => _value / 1e6, - WarpingMomentOfInertiaUnit.FootToTheSixth => _value * Math.Pow(0.3048, 6), - WarpingMomentOfInertiaUnit.InchToTheSixth => _value * Math.Pow(2.54e-2, 6), + WarpingMomentOfInertiaUnit.FootToTheSixth => _value * 0.000801843800914862014464, + WarpingMomentOfInertiaUnit.InchToTheSixth => _value * 0.000000000268535866540096, WarpingMomentOfInertiaUnit.MeterToTheSixth => _value, WarpingMomentOfInertiaUnit.MillimeterToTheSixth => _value / 1e18, _ => throw new NotImplementedException($"Can not convert {Unit} to base units.") @@ -203,8 +203,8 @@ private double GetValueAs(WarpingMomentOfInertiaUnit unit) { WarpingMomentOfInertiaUnit.CentimeterToTheSixth => baseUnitValue * 1e12, WarpingMomentOfInertiaUnit.DecimeterToTheSixth => baseUnitValue * 1e6, - WarpingMomentOfInertiaUnit.FootToTheSixth => baseUnitValue / Math.Pow(0.3048, 6), - WarpingMomentOfInertiaUnit.InchToTheSixth => baseUnitValue / Math.Pow(2.54e-2, 6), + WarpingMomentOfInertiaUnit.FootToTheSixth => baseUnitValue / 0.000801843800914862014464, + WarpingMomentOfInertiaUnit.InchToTheSixth => baseUnitValue / 0.000000000268535866540096, WarpingMomentOfInertiaUnit.MeterToTheSixth => baseUnitValue, WarpingMomentOfInertiaUnit.MillimeterToTheSixth => baseUnitValue * 1e18, _ => throw new NotImplementedException($"Can not convert {Unit} to {unit}.") diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/AccelerationUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/AccelerationUnit.g.cs index b4f1c48938..a514c50ff7 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/AccelerationUnit.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Units/AccelerationUnit.g.cs @@ -30,7 +30,17 @@ public enum AccelerationUnit FootPerSecondSquared = 3, InchPerSecondSquared = 4, KilometerPerSecondSquared = 5, + + /// + /// The knot (/nɒt/) is a unit of speed equal to one nautical mile per hour, exactly 1.852 km/h (approximately 1.151 mph or 0.514 m/s). + /// + /// https://en.wikipedia.org/wiki/Knot_(unit) KnotPerHour = 6, + + /// + /// The knot (/nɒt/) is a unit of speed equal to one nautical mile per hour, exactly 1.852 km/h (approximately 1.151 mph or 0.514 m/s). + /// + /// https://en.wikipedia.org/wiki/Knot_(unit) KnotPerMinute = 7, KnotPerSecond = 8, MeterPerSecondSquared = 9, diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/DensityUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/DensityUnit.g.cs index 70b4e91fc7..638b21b01a 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/DensityUnit.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Units/DensityUnit.g.cs @@ -70,7 +70,7 @@ public enum DensityUnit PoundPerCubicMillimeter = 39, /// - /// Calculated from the definition of pound and yard compared to metric kilogram and meter. + /// Calculated from the definition of pound and Cubic yard compared to metric kilogram and meter. /// PoundPerCubicYard = 58, PoundPerImperialGallon = 40, diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/EnergyUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/EnergyUnit.g.cs index 392f8f736a..87b58d3a8a 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/EnergyUnit.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Units/EnergyUnit.g.cs @@ -30,14 +30,34 @@ public enum EnergyUnit DecathermEc = 3, DecathermImperial = 4, DecathermUs = 5, + + /// + /// In physics, an electronvolt (symbol eV, also written electron-volt and electron volt) is the measure of an amount of kinetic energy gained by a single electron accelerating from rest through an electric potential difference of one volt in vacuum. When used as a unit of energy, the numerical value of 1 eV in joules (symbol J) is equivalent to the numerical value of the charge of an electron in coulombs (symbol C). Under the 2019 redefinition of the SI base units, this sets 1 eV equal to the exact value 1.602176634×10−19 J. + /// + /// https://en.wikipedia.org/wiki/Electronvolt ElectronVolt = 6, + + /// + /// The erg is a unit of energy equal to 10−7 joules (100 nJ). It originated in the Centimetre–gram–second system of units (CGS). It has the symbol erg. The erg is not an SI unit. Its name is derived from ergon (ἔργον), a Greek word meaning 'work' or 'task'. + /// + /// https://en.wikipedia.org/wiki/Erg Erg = 7, + + /// + /// A pound-foot (lb⋅ft), abbreviated from pound-force foot (lbf · ft), is a unit of torque representing one pound of force acting at a perpendicular distance of one foot from a pivot point. Conversely one foot pound-force (ft · lbf) is the moment about an axis that applies one pound-force at a radius of one foot. + /// + /// https://en.wikipedia.org/wiki/Pound-foot_(torque) FootPound = 8, GigabritishThermalUnit = 9, GigaelectronVolt = 10, Gigajoule = 11, GigawattDay = 12, GigawattHour = 13, + + /// + /// A horsepower-hour (symbol: hp⋅h) is an outdated unit of energy, not used in the International System of Units. The unit represents an amount of work a horse is supposed capable of delivering during an hour (1 horsepower integrated over a time interval of an hour). + /// + /// https://en.wikipedia.org/wiki/Horsepower-hour HorsepowerHour = 14, Joule = 15, KilobritishThermalUnit = 16, @@ -60,8 +80,23 @@ public enum EnergyUnit Terajoule = 37, TerawattDay = 30, TerawattHour = 31, + + /// + /// The therm (symbol, thm) is a non-SI unit of heat energy equal to 100,000 British thermal units (BTU), and approximately 105 megajoules, 29.3 kilowatt-hours, 25,200 kilocalories and 25.2 thermies. One therm is the energy content of approximately 100 cubic feet (2.83 cubic metres) of natural gas at standard temperature and pressure. However, the BTU is not standardised worldwide, with slightly different values in the EU, UK, and United States, meaning that the energy content of the therm also varies by territory. + /// + /// https://en.wikipedia.org/wiki/Therm ThermEc = 32, + + /// + /// The therm (symbol, thm) is a non-SI unit of heat energy equal to 100,000 British thermal units (BTU), and approximately 105 megajoules, 29.3 kilowatt-hours, 25,200 kilocalories and 25.2 thermies. One therm is the energy content of approximately 100 cubic feet (2.83 cubic metres) of natural gas at standard temperature and pressure. However, the BTU is not standardised worldwide, with slightly different values in the EU, UK, and United States, meaning that the energy content of the therm also varies by territory. + /// + /// https://en.wikipedia.org/wiki/Therm ThermImperial = 33, + + /// + /// The therm (symbol, thm) is a non-SI unit of heat energy equal to 100,000 British thermal units (BTU), and approximately 105 megajoules, 29.3 kilowatt-hours, 25,200 kilocalories and 25.2 thermies. One therm is the energy content of approximately 100 cubic feet (2.83 cubic metres) of natural gas at standard temperature and pressure. However, the BTU is not standardised worldwide, with slightly different values in the EU, UK, and United States, meaning that the energy content of the therm also varies by territory. + /// + /// https://en.wikipedia.org/wiki/Therm ThermUs = 34, WattDay = 35, WattHour = 36, diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/FrequencyUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/FrequencyUnit.g.cs index 370d1d3ccd..9bd8b9aa0e 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/FrequencyUnit.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Units/FrequencyUnit.g.cs @@ -36,6 +36,11 @@ public enum FrequencyUnit Microhertz = 16, Millihertz = 21, PerSecond = 9, + + /// + /// In SI units, angular frequency is normally presented with the unit radian per second, and need not express a rotational value. The unit hertz (Hz) is dimensionally equivalent, but by convention it is only used for frequency f, never for angular frequency ω. This convention is used to help avoid the confusion that arises when dealing with quantities such as frequency and angular quantities because the units of measure (such as cycle or radian) are considered to be one and hence may be omitted when expressing quantities in terms of SI units. + /// + /// https://en.wikipedia.org/wiki/Angular_frequency RadianPerSecond = 10, Terahertz = 11, } diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/LengthUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/LengthUnit.g.cs index 9323e39ba8..0c92578089 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/LengthUnit.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Units/LengthUnit.g.cs @@ -38,6 +38,11 @@ public enum LengthUnit /// https://en.wikipedia.org/wiki/Astronomical_unit AstronomicalUnit = 2, Centimeter = 3, + + /// + /// The chain (abbreviated ch) is a unit of length equal to 66 feet (22 yards), used in both the US customary and Imperial unit systems. It is subdivided into 100 links. There are 10 chains in a furlong, and 80 chains in one statute mile. In metric terms, it is 20.1168 m long. + /// + /// https://en.wikipedia.org/wiki/Chain_(unit) Chain = 4, /// @@ -47,14 +52,39 @@ public enum LengthUnit DataMile = 5, Decameter = 6, Decimeter = 7, + + /// + /// The pica is a typographic unit of measure corresponding to approximately 1⁄6 of an inch, or from 1⁄68 to 1⁄73 of a foot. One pica is further divided into 12 points. + /// + /// https://en.wikipedia.org/wiki/Pica_(typography) DtpPica = 8, + + /// + /// The desktop publishing point (DTP) is defined as 1⁄72 of an inch (1/72 × 25.4 mm ≈ 0.353 mm) and, as with earlier American point sizes, is considered to be 1⁄12 of a pica. + /// + /// https://en.wikipedia.org/wiki/Point_(typography) DtpPoint = 9, Fathom = 10, Femtometer = 48, + + /// + /// The foot (pl. feet; standard symbol: ft) is a unit of length in the British imperial and United States customary systems of measurement. The prime symbol, ′, is commonly used to represent the foot. In both customary and imperial units, one foot comprises 12 inches, and one yard comprises three feet. Since an international agreement in 1959, the foot is defined as equal to exactly 0.3048 meters. + /// + /// https://en.wikipedia.org/wiki/Foot_(unit) Foot = 11, Gigameter = 44, + + /// + /// The hand is a non-SI unit of measurement of length standardized to 4 in (101.6 mm). It is used to measure the height of horses in many English-speaking countries, including Australia, Canada, Ireland, the United Kingdom, and the United States. It was originally based on the breadth of a human hand. + /// + /// https://en.wikipedia.org/wiki/Hand_(unit) Hand = 12, Hectometer = 13, + + /// + /// The inch (symbol: in or ″) is a unit of length in the British Imperial and the United States customary systems of measurement. It is equal to 1/36 yard or 1/12 of a foot. Derived from the Roman uncia ("twelfth"), the word inch is also sometimes used to translate similar units in other measurement systems, usually understood as deriving from the width of the human thumb. + /// + /// https://en.wikipedia.org/wiki/Inch Inch = 14, Kilofoot = 45, KilolightYear = 15, @@ -90,7 +120,17 @@ public enum LengthUnit /// https://en.wikipedia.org/wiki/Parsec Parsec = 29, Picometer = 43, + + /// + /// The American pica of 0.16604 inches (~4.217 mm) was established by the United States Type Founders' Association in 1886. In TeX one pica is 400⁄2409 of an inch. + /// + /// https://en.wikipedia.org/wiki/Pica_(typography) PrinterPica = 30, + + /// + /// In typography, the point is the smallest unit of measure. It is used for measuring font size, leading, and other items on a printed page. In modern times this size of the point has been approximated as exactly 1⁄72.27 (0.01383700013837) of the inch by Donald Knuth for the default unit of his TeX computer typesetting system and is thus sometimes known as the TeX point. + /// + /// https://en.wikipedia.org/wiki/Point_(typography) PrinterPoint = 31, Shackle = 32, @@ -99,6 +139,11 @@ public enum LengthUnit /// /// https://en.wikipedia.org/wiki/Stellar_classification SolarRadius = 33, + + /// + /// A twip (abbreviating "twentieth of a point" or "twentieth of an inch point") is a typographical measurement, defined as 1⁄20 of a typographical point. One twip is 1⁄1440 inch, or ~17.64 μm. + /// + /// https://en.wikipedia.org/wiki/Twip Twip = 34, /// diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/MassUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/MassUnit.g.cs index 40dca115f1..8bf661827e 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/MassUnit.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Units/MassUnit.g.cs @@ -106,6 +106,11 @@ public enum MassUnit /// /// http://en.wikipedia.org/wiki/Stone_(unit) Stone = 24, + + /// + /// The tonne is a unit of mass equal to 1,000 kilograms. It is a non-SI unit accepted for use with SI. It is also referred to as a metric ton in the United States to distinguish it from the non-metric units of the short ton (United States customary units) and the long ton (British imperial units). It is equivalent to approximately 2,204.6 pounds, 1.102 short tons, and 0.984 long tons. + /// + /// https://en.wikipedia.org/wiki/Tonne Tonne = 25, } diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/PorousMediumPermeabilityUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/PorousMediumPermeabilityUnit.g.cs index 9b57db7199..0ef3c52664 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/PorousMediumPermeabilityUnit.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Units/PorousMediumPermeabilityUnit.g.cs @@ -25,6 +25,11 @@ namespace UnitsNet.Units public enum PorousMediumPermeabilityUnit { + + /// + /// The darcy (or darcy unit) and millidarcy (md or mD) are units of permeability, named after Henry Darcy. They are not SI units, but they are widely used in petroleum engineering and geology. + /// + /// https://en.wikipedia.org/wiki/Darcy_(unit) Darcy = 1, Microdarcy = 2, Millidarcy = 3, diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/VolumeUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/VolumeUnit.g.cs index c35715428b..84dbccfb05 100644 --- a/UnitsNet.NanoFramework/GeneratedCode/Units/VolumeUnit.g.cs +++ b/UnitsNet.NanoFramework/GeneratedCode/Units/VolumeUnit.g.cs @@ -25,20 +25,55 @@ namespace UnitsNet.Units public enum VolumeUnit { + + /// + /// An acre-foot is 43,560 cubic feet (~1,233.5 m3). + /// + /// https://en.wikipedia.org/wiki/Acre-foot AcreFoot = 1, + + /// + /// In Australia, the definition of the tablespoon is 20 ml (0.70 imp fl oz). + /// + /// https://en.wikipedia.org/wiki/Tablespoon#Australia AuTablespoon = 2, + + /// + /// The board foot or board-foot is a unit of measurement for the volume of lumber in the United States and Canada. It equals the volume of a board that is one-foot (305 mm) in length, one-foot (305 mm) in width, and one-inch (25.4 mm) in thickness. + /// + /// https://en.wikipedia.org/wiki/Board_foot BoardFoot = 3, Centiliter = 4, CubicCentimeter = 5, CubicDecimeter = 6, + + /// + /// The cubic foot (symbol ft3 or cu ft) is an imperial and US customary (non-metric) unit of volume, used in the United States and the United Kingdom. It is defined as the volume of a cube with sides of one foot (0.3048 m) in length. + /// + /// https://en.wikipedia.org/wiki/Cubic_foot CubicFoot = 7, CubicHectometer = 8, + + /// + /// The cubic inch (symbol in3) is a unit of volume in the Imperial units and United States customary units systems. It is the volume of a cube with each of its three dimensions (length, width, and height) being one inch long which is equivalent to 1/231 of a US gallon. + /// + /// https://en.wikipedia.org/wiki/Cubic_yard CubicInch = 9, CubicKilometer = 10, CubicMeter = 11, CubicMicrometer = 12, + + /// + /// A cubic mile (abbreviation: cu mi or mi3) is an imperial and US customary (non-SI non-metric) unit of volume, used in the United States, Canada and the United Kingdom. It is defined as the volume of a cube with sides of 1 mile (63360 inches, 5280 feet, 1760 yards or ~1.609 kilometres) in length. + /// + /// https://en.wikipedia.org/wiki/Cubic_mile CubicMile = 13, CubicMillimeter = 14, + + /// + /// A cubic yard is an Imperial / U.S. customary (non-SI non-metric) unit of volume, used in Canada and the United States. It is defined as the volume of a cube with sides of 1 yard (3 feet, 36 inches, 0.9144 meters) in length. + /// + /// https://en.wikipedia.org/wiki/Cubic_yard CubicYard = 15, Decaliter = 16, DecausGallon = 17, @@ -48,6 +83,11 @@ public enum VolumeUnit HectocubicMeter = 21, Hectoliter = 22, HectousGallon = 23, + + /// + /// Fluid barrels vary depending on what is being measured and where. In the UK a beer barrel is 36 imperial gallons (43 US gal; ~164 L). + /// + /// https://en.wikipedia.org/wiki/Barrel_(unit)#Fluid_barrel_in_the_US_and_UK ImperialBeerBarrel = 24, /// @@ -55,8 +95,23 @@ public enum VolumeUnit /// /// https://en.wikipedia.org/wiki/Gallon#Imperial_gallon ImperialGallon = 25, + + /// + /// An imperial fluid ounce is 1⁄20 of an imperial pint, 1⁄160 of an imperial gallon or exactly 28.4130625 mL. + /// + /// https://en.wikipedia.org/wiki/Fluid_ounce ImperialOunce = 26, + + /// + /// The pint is a unit of volume or capacity in both the imperial and United States customary measurement systems. In both of those systems it is traditionally one eighth of a gallon. The British imperial pint is about 20% larger than the American pint because the two systems are defined differently. + /// + /// https://en.wikipedia.org/wiki/Pint#Imperial_pint ImperialPint = 27, + + /// + /// The imperial quart, which is used for both liquid and dry capacity, is equal to one quarter of an imperial gallon, or exactly 1.1365225 liters. + /// + /// https://en.wikipedia.org/wiki/Quart#Imperial_quart ImperialQuart = 57, KilocubicFoot = 28, KilocubicMeter = 29, @@ -68,14 +123,44 @@ public enum VolumeUnit MegaimperialGallon = 35, Megaliter = 36, MegausGallon = 37, + + /// + /// Australia, Canada, New Zealand, and some other members of the Commonwealth of Nations, being former British colonies that have since metricated, employ a metric cup of 250 millilitres. Although derived from the metric system, it is not an SI unit. + /// + /// https://en.wikipedia.org/wiki/Cup_(unit)#Metric_cup MetricCup = 38, + + /// + /// The metric teaspoon as a unit of culinary measure is 5 ml (0.18 imp fl oz; 0.17 US fl oz),[17] equal to 5 cm3, 1⁄3 UK/Canadian metric tablespoon, or 1⁄4 Australian metric tablespoon. + /// + /// https://en.wikipedia.org/wiki/Teaspoon#Metric_teaspoon MetricTeaspoon = 39, Microliter = 40, Milliliter = 41, Nanoliter = 53, + + /// + /// In the oil industry, one barrel (unit symbol bbl) is a unit of volume used for measuring oil defined as exactly 42 US gallons, approximately 159 liters, or 35 imperial gallons. + /// + /// https://en.wikipedia.org/wiki/Barrel_(unit)#Oil_barrel OilBarrel = 42, + + /// + /// In nutrition labeling in the U.S. and the U.K., a tablespoon is defined as 15 ml (0.51 US fl oz). In Australia, the definition of the tablespoon is 20 ml (0.70 imp fl oz). + /// + /// https://en.wikipedia.org/wiki/Tablespoon#International UkTablespoon = 43, + + /// + /// Fluid barrels vary depending on what is being measured and where. In the US most fluid barrels (apart from oil) are 31.5 US gallons (26 imp gal; 119 L) (half a hogshead), but a beer barrel is 31 US gallons (26 imp gal; 117 L). + /// + /// https://en.wikipedia.org/wiki/Barrel_(unit)#Fluid_barrel_in_the_US_and_UK UsBeerBarrel = 44, + + /// + /// In the United States, the customary cup is half of a liquid pint or 1⁄16 US customary gallon which is 236.5882365 milliliters exactly. + /// + /// https://en.wikipedia.org/wiki/Cup_(unit)#Customary_cup UsCustomaryCup = 45, /// @@ -83,11 +168,41 @@ public enum VolumeUnit /// /// https://en.wikipedia.org/wiki/Gallon#US_liquid_gallon UsGallon = 46, + + /// + /// The cup currently used in the United States for nutrition labelling is defined in United States law as 240 ml. + /// + /// https://en.wikipedia.org/wiki/Cup_(unit)#Legal_cup UsLegalCup = 47, + + /// + /// A US customary fluid ounce is 1⁄16 of a US liquid pint and 1⁄128 of a US liquid gallon or exactly 29.5735295625 mL, making it about 4.08% larger than the imperial fluid ounce. + /// + /// https://en.wikipedia.org/wiki/Fluid_ounce UsOunce = 48, + + /// + /// The pint is a unit of volume or capacity in both the imperial and United States customary measurement systems. In both of those systems it is traditionally one eighth of a gallon. The British imperial pint is about 20% larger than the American pint because the two systems are defined differently. + /// + /// https://en.wikipedia.org/wiki/Pint#US_liquid_pint UsPint = 49, + + /// + /// The US liquid quart equals 57.75 cubic inches, which is exactly equal to 0.946352946 L. + /// + /// https://en.wikipedia.org/wiki/Quart#US_liquid_quart UsQuart = 50, + + /// + /// The traditional U.S. interpretation of the tablespoon as a unit of volume is: 1 US tablespoon = 4 fluid drams, or 3 teaspoons or 1/2 US fluid ounce (≈ 14.8 ml) + /// + /// https://en.wikipedia.org/wiki/Tablespoon#United_States UsTablespoon = 51, + + /// + /// As a unit of culinary measure, one teaspoon in the United States is 1⁄3 tablespoon, exactly 4.92892159375 ml, 1 1⁄3 US fluid drams, 1⁄6 US fl oz, 1⁄48 US cup, 1⁄768 US liquid gallon, or 77⁄256 (0.30078125) cubic inches. + /// + /// https://en.wikipedia.org/wiki/Teaspoon#United_States_customary_unit UsTeaspoon = 52, } diff --git a/UnitsNet/GeneratedCode/Quantities/Acceleration.g.cs b/UnitsNet/GeneratedCode/Quantities/Acceleration.g.cs index a2c90e3e9c..c998ba68e4 100644 --- a/UnitsNet/GeneratedCode/Quantities/Acceleration.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Acceleration.g.cs @@ -947,9 +947,9 @@ private bool TryToUnit(AccelerationUnit unit, [NotNullWhen(true)] out Accelerati (AccelerationUnit.FootPerSecondSquared, AccelerationUnit.MeterPerSecondSquared) => new Acceleration(_value * 0.304800, AccelerationUnit.MeterPerSecondSquared), (AccelerationUnit.InchPerSecondSquared, AccelerationUnit.MeterPerSecondSquared) => new Acceleration(_value * 0.0254, AccelerationUnit.MeterPerSecondSquared), (AccelerationUnit.KilometerPerSecondSquared, AccelerationUnit.MeterPerSecondSquared) => new Acceleration((_value) * 1e3d, AccelerationUnit.MeterPerSecondSquared), - (AccelerationUnit.KnotPerHour, AccelerationUnit.MeterPerSecondSquared) => new Acceleration(_value * 0.5144444444444 / 3600, AccelerationUnit.MeterPerSecondSquared), - (AccelerationUnit.KnotPerMinute, AccelerationUnit.MeterPerSecondSquared) => new Acceleration(_value * 0.5144444444444 / 60, AccelerationUnit.MeterPerSecondSquared), - (AccelerationUnit.KnotPerSecond, AccelerationUnit.MeterPerSecondSquared) => new Acceleration(_value * 0.5144444444444, AccelerationUnit.MeterPerSecondSquared), + (AccelerationUnit.KnotPerHour, AccelerationUnit.MeterPerSecondSquared) => new Acceleration(_value * (1852.0 / 3600.0) / 3600, AccelerationUnit.MeterPerSecondSquared), + (AccelerationUnit.KnotPerMinute, AccelerationUnit.MeterPerSecondSquared) => new Acceleration(_value * (1852.0 / 3600.0) / 60, AccelerationUnit.MeterPerSecondSquared), + (AccelerationUnit.KnotPerSecond, AccelerationUnit.MeterPerSecondSquared) => new Acceleration(_value * (1852.0 / 3600.0), AccelerationUnit.MeterPerSecondSquared), (AccelerationUnit.MicrometerPerSecondSquared, AccelerationUnit.MeterPerSecondSquared) => new Acceleration((_value) * 1e-6d, AccelerationUnit.MeterPerSecondSquared), (AccelerationUnit.MillimeterPerSecondSquared, AccelerationUnit.MeterPerSecondSquared) => new Acceleration((_value) * 1e-3d, AccelerationUnit.MeterPerSecondSquared), (AccelerationUnit.MillistandardGravity, AccelerationUnit.MeterPerSecondSquared) => new Acceleration((_value * 9.80665) * 1e-3d, AccelerationUnit.MeterPerSecondSquared), @@ -962,9 +962,9 @@ private bool TryToUnit(AccelerationUnit unit, [NotNullWhen(true)] out Accelerati (AccelerationUnit.MeterPerSecondSquared, AccelerationUnit.FootPerSecondSquared) => new Acceleration(_value / 0.304800, AccelerationUnit.FootPerSecondSquared), (AccelerationUnit.MeterPerSecondSquared, AccelerationUnit.InchPerSecondSquared) => new Acceleration(_value / 0.0254, AccelerationUnit.InchPerSecondSquared), (AccelerationUnit.MeterPerSecondSquared, AccelerationUnit.KilometerPerSecondSquared) => new Acceleration((_value) / 1e3d, AccelerationUnit.KilometerPerSecondSquared), - (AccelerationUnit.MeterPerSecondSquared, AccelerationUnit.KnotPerHour) => new Acceleration(_value / 0.5144444444444 * 3600, AccelerationUnit.KnotPerHour), - (AccelerationUnit.MeterPerSecondSquared, AccelerationUnit.KnotPerMinute) => new Acceleration(_value / 0.5144444444444 * 60, AccelerationUnit.KnotPerMinute), - (AccelerationUnit.MeterPerSecondSquared, AccelerationUnit.KnotPerSecond) => new Acceleration(_value / 0.5144444444444, AccelerationUnit.KnotPerSecond), + (AccelerationUnit.MeterPerSecondSquared, AccelerationUnit.KnotPerHour) => new Acceleration(_value * 3600 / (1852.0 / 3600.0), AccelerationUnit.KnotPerHour), + (AccelerationUnit.MeterPerSecondSquared, AccelerationUnit.KnotPerMinute) => new Acceleration(_value * 60 / (1852.0 / 3600.0), AccelerationUnit.KnotPerMinute), + (AccelerationUnit.MeterPerSecondSquared, AccelerationUnit.KnotPerSecond) => new Acceleration(_value / (1852.0 / 3600.0), AccelerationUnit.KnotPerSecond), (AccelerationUnit.MeterPerSecondSquared, AccelerationUnit.MicrometerPerSecondSquared) => new Acceleration((_value) / 1e-6d, AccelerationUnit.MicrometerPerSecondSquared), (AccelerationUnit.MeterPerSecondSquared, AccelerationUnit.MillimeterPerSecondSquared) => new Acceleration((_value) / 1e-3d, AccelerationUnit.MillimeterPerSecondSquared), (AccelerationUnit.MeterPerSecondSquared, AccelerationUnit.MillistandardGravity) => new Acceleration((_value / 9.80665) / 1e-3d, AccelerationUnit.MillistandardGravity), diff --git a/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs b/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs index 73682d30b4..6ea9a72cb7 100644 --- a/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/AreaMomentOfInertia.g.cs @@ -795,15 +795,15 @@ private bool TryToUnit(AreaMomentOfInertiaUnit unit, [NotNullWhen(true)] out Are // AreaMomentOfInertiaUnit -> BaseUnit (AreaMomentOfInertiaUnit.CentimeterToTheFourth, AreaMomentOfInertiaUnit.MeterToTheFourth) => new AreaMomentOfInertia(_value / 1e8, AreaMomentOfInertiaUnit.MeterToTheFourth), (AreaMomentOfInertiaUnit.DecimeterToTheFourth, AreaMomentOfInertiaUnit.MeterToTheFourth) => new AreaMomentOfInertia(_value / 1e4, AreaMomentOfInertiaUnit.MeterToTheFourth), - (AreaMomentOfInertiaUnit.FootToTheFourth, AreaMomentOfInertiaUnit.MeterToTheFourth) => new AreaMomentOfInertia(_value * Math.Pow(0.3048, 4), AreaMomentOfInertiaUnit.MeterToTheFourth), - (AreaMomentOfInertiaUnit.InchToTheFourth, AreaMomentOfInertiaUnit.MeterToTheFourth) => new AreaMomentOfInertia(_value * Math.Pow(2.54e-2, 4), AreaMomentOfInertiaUnit.MeterToTheFourth), + (AreaMomentOfInertiaUnit.FootToTheFourth, AreaMomentOfInertiaUnit.MeterToTheFourth) => new AreaMomentOfInertia(_value * 0.0086309748412416, AreaMomentOfInertiaUnit.MeterToTheFourth), + (AreaMomentOfInertiaUnit.InchToTheFourth, AreaMomentOfInertiaUnit.MeterToTheFourth) => new AreaMomentOfInertia(_value * 0.0000004162314256, AreaMomentOfInertiaUnit.MeterToTheFourth), (AreaMomentOfInertiaUnit.MillimeterToTheFourth, AreaMomentOfInertiaUnit.MeterToTheFourth) => new AreaMomentOfInertia(_value / 1e12, AreaMomentOfInertiaUnit.MeterToTheFourth), // BaseUnit -> AreaMomentOfInertiaUnit (AreaMomentOfInertiaUnit.MeterToTheFourth, AreaMomentOfInertiaUnit.CentimeterToTheFourth) => new AreaMomentOfInertia(_value * 1e8, AreaMomentOfInertiaUnit.CentimeterToTheFourth), (AreaMomentOfInertiaUnit.MeterToTheFourth, AreaMomentOfInertiaUnit.DecimeterToTheFourth) => new AreaMomentOfInertia(_value * 1e4, AreaMomentOfInertiaUnit.DecimeterToTheFourth), - (AreaMomentOfInertiaUnit.MeterToTheFourth, AreaMomentOfInertiaUnit.FootToTheFourth) => new AreaMomentOfInertia(_value / Math.Pow(0.3048, 4), AreaMomentOfInertiaUnit.FootToTheFourth), - (AreaMomentOfInertiaUnit.MeterToTheFourth, AreaMomentOfInertiaUnit.InchToTheFourth) => new AreaMomentOfInertia(_value / Math.Pow(2.54e-2, 4), AreaMomentOfInertiaUnit.InchToTheFourth), + (AreaMomentOfInertiaUnit.MeterToTheFourth, AreaMomentOfInertiaUnit.FootToTheFourth) => new AreaMomentOfInertia(_value / 0.0086309748412416, AreaMomentOfInertiaUnit.FootToTheFourth), + (AreaMomentOfInertiaUnit.MeterToTheFourth, AreaMomentOfInertiaUnit.InchToTheFourth) => new AreaMomentOfInertia(_value / 0.0000004162314256, AreaMomentOfInertiaUnit.InchToTheFourth), (AreaMomentOfInertiaUnit.MeterToTheFourth, AreaMomentOfInertiaUnit.MillimeterToTheFourth) => new AreaMomentOfInertia(_value * 1e12, AreaMomentOfInertiaUnit.MillimeterToTheFourth), _ => null diff --git a/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs b/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs index 4753f34f13..3a1c2d2deb 100644 --- a/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.g.cs @@ -752,11 +752,11 @@ private bool TryToUnit(BrakeSpecificFuelConsumptionUnit unit, [NotNullWhen(true) { // BrakeSpecificFuelConsumptionUnit -> BaseUnit (BrakeSpecificFuelConsumptionUnit.GramPerKiloWattHour, BrakeSpecificFuelConsumptionUnit.KilogramPerJoule) => new BrakeSpecificFuelConsumption(_value / 3.6e9, BrakeSpecificFuelConsumptionUnit.KilogramPerJoule), - (BrakeSpecificFuelConsumptionUnit.PoundPerMechanicalHorsepowerHour, BrakeSpecificFuelConsumptionUnit.KilogramPerJoule) => new BrakeSpecificFuelConsumption(_value * 1.689659410672e-7, BrakeSpecificFuelConsumptionUnit.KilogramPerJoule), + (BrakeSpecificFuelConsumptionUnit.PoundPerMechanicalHorsepowerHour, BrakeSpecificFuelConsumptionUnit.KilogramPerJoule) => new BrakeSpecificFuelConsumption(_value * (0.45359237 / (76.0402249 * 9.80665))/3600, BrakeSpecificFuelConsumptionUnit.KilogramPerJoule), // BaseUnit -> BrakeSpecificFuelConsumptionUnit (BrakeSpecificFuelConsumptionUnit.KilogramPerJoule, BrakeSpecificFuelConsumptionUnit.GramPerKiloWattHour) => new BrakeSpecificFuelConsumption(_value * 3.6e9, BrakeSpecificFuelConsumptionUnit.GramPerKiloWattHour), - (BrakeSpecificFuelConsumptionUnit.KilogramPerJoule, BrakeSpecificFuelConsumptionUnit.PoundPerMechanicalHorsepowerHour) => new BrakeSpecificFuelConsumption(_value / 1.689659410672e-7, BrakeSpecificFuelConsumptionUnit.PoundPerMechanicalHorsepowerHour), + (BrakeSpecificFuelConsumptionUnit.KilogramPerJoule, BrakeSpecificFuelConsumptionUnit.PoundPerMechanicalHorsepowerHour) => new BrakeSpecificFuelConsumption(_value * 3600 / (0.45359237 / (76.0402249 * 9.80665)), BrakeSpecificFuelConsumptionUnit.PoundPerMechanicalHorsepowerHour), _ => null }; diff --git a/UnitsNet/GeneratedCode/Quantities/Density.g.cs b/UnitsNet/GeneratedCode/Quantities/Density.g.cs index b043c3f7e9..fc1e332508 100644 --- a/UnitsNet/GeneratedCode/Quantities/Density.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Density.g.cs @@ -1648,8 +1648,8 @@ private bool TryToUnit(DensityUnit unit, [NotNullWhen(true)] out Density? conver (DensityUnit.FemtogramPerLiter, DensityUnit.KilogramPerCubicMeter) => new Density((_value / 1) * 1e-15d, DensityUnit.KilogramPerCubicMeter), (DensityUnit.FemtogramPerMilliliter, DensityUnit.KilogramPerCubicMeter) => new Density((_value / 1e-3) * 1e-15d, DensityUnit.KilogramPerCubicMeter), (DensityUnit.GramPerCubicCentimeter, DensityUnit.KilogramPerCubicMeter) => new Density(_value / 1e-3, DensityUnit.KilogramPerCubicMeter), - (DensityUnit.GramPerCubicFoot, DensityUnit.KilogramPerCubicMeter) => new Density(_value * 0.0353146667214886, DensityUnit.KilogramPerCubicMeter), - (DensityUnit.GramPerCubicInch, DensityUnit.KilogramPerCubicMeter) => new Density(_value * 61.0237440947323, DensityUnit.KilogramPerCubicMeter), + (DensityUnit.GramPerCubicFoot, DensityUnit.KilogramPerCubicMeter) => new Density(_value * 0.001 / 0.028316846592, DensityUnit.KilogramPerCubicMeter), + (DensityUnit.GramPerCubicInch, DensityUnit.KilogramPerCubicMeter) => new Density(_value * 0.001 / 1.6387064e-5, DensityUnit.KilogramPerCubicMeter), (DensityUnit.GramPerCubicMeter, DensityUnit.KilogramPerCubicMeter) => new Density(_value / 1e3, DensityUnit.KilogramPerCubicMeter), (DensityUnit.GramPerCubicMillimeter, DensityUnit.KilogramPerCubicMeter) => new Density(_value / 1e-6, DensityUnit.KilogramPerCubicMeter), (DensityUnit.GramPerDeciliter, DensityUnit.KilogramPerCubicMeter) => new Density(_value / 1e-1, DensityUnit.KilogramPerCubicMeter), @@ -1658,9 +1658,9 @@ private bool TryToUnit(DensityUnit unit, [NotNullWhen(true)] out Density? conver (DensityUnit.KilogramPerCubicCentimeter, DensityUnit.KilogramPerCubicMeter) => new Density((_value / 1e-3) * 1e3d, DensityUnit.KilogramPerCubicMeter), (DensityUnit.KilogramPerCubicMillimeter, DensityUnit.KilogramPerCubicMeter) => new Density((_value / 1e-6) * 1e3d, DensityUnit.KilogramPerCubicMeter), (DensityUnit.KilogramPerLiter, DensityUnit.KilogramPerCubicMeter) => new Density(_value * 1e3, DensityUnit.KilogramPerCubicMeter), - (DensityUnit.KilopoundPerCubicFoot, DensityUnit.KilogramPerCubicMeter) => new Density((_value / 0.062427961) * 1e3d, DensityUnit.KilogramPerCubicMeter), - (DensityUnit.KilopoundPerCubicInch, DensityUnit.KilogramPerCubicMeter) => new Density((_value / 3.6127298147753e-5) * 1e3d, DensityUnit.KilogramPerCubicMeter), - (DensityUnit.KilopoundPerCubicYard, DensityUnit.KilogramPerCubicMeter) => new Density((_value * (0.45359237 / 0.9144 / 0.9144 / 0.9144)) * 1e3d, DensityUnit.KilogramPerCubicMeter), + (DensityUnit.KilopoundPerCubicFoot, DensityUnit.KilogramPerCubicMeter) => new Density((_value * 0.45359237 / 0.028316846592) * 1e3d, DensityUnit.KilogramPerCubicMeter), + (DensityUnit.KilopoundPerCubicInch, DensityUnit.KilogramPerCubicMeter) => new Density((_value * 0.45359237 / 1.6387064e-5) * 1e3d, DensityUnit.KilogramPerCubicMeter), + (DensityUnit.KilopoundPerCubicYard, DensityUnit.KilogramPerCubicMeter) => new Density((_value * 0.45359237 / 0.764554857984) * 1e3d, DensityUnit.KilogramPerCubicMeter), (DensityUnit.MicrogramPerCubicMeter, DensityUnit.KilogramPerCubicMeter) => new Density((_value / 1e3) * 1e-6d, DensityUnit.KilogramPerCubicMeter), (DensityUnit.MicrogramPerDeciliter, DensityUnit.KilogramPerCubicMeter) => new Density((_value / 1e-1) * 1e-6d, DensityUnit.KilogramPerCubicMeter), (DensityUnit.MicrogramPerLiter, DensityUnit.KilogramPerCubicMeter) => new Density((_value / 1) * 1e-6d, DensityUnit.KilogramPerCubicMeter), @@ -1675,22 +1675,22 @@ private bool TryToUnit(DensityUnit unit, [NotNullWhen(true)] out Density? conver (DensityUnit.PicogramPerDeciliter, DensityUnit.KilogramPerCubicMeter) => new Density((_value / 1e-1) * 1e-12d, DensityUnit.KilogramPerCubicMeter), (DensityUnit.PicogramPerLiter, DensityUnit.KilogramPerCubicMeter) => new Density((_value / 1) * 1e-12d, DensityUnit.KilogramPerCubicMeter), (DensityUnit.PicogramPerMilliliter, DensityUnit.KilogramPerCubicMeter) => new Density((_value / 1e-3) * 1e-12d, DensityUnit.KilogramPerCubicMeter), - (DensityUnit.PoundPerCubicCentimeter, DensityUnit.KilogramPerCubicMeter) => new Density(_value / 2.204622621848775e-6, DensityUnit.KilogramPerCubicMeter), - (DensityUnit.PoundPerCubicFoot, DensityUnit.KilogramPerCubicMeter) => new Density(_value / 0.062427961, DensityUnit.KilogramPerCubicMeter), - (DensityUnit.PoundPerCubicInch, DensityUnit.KilogramPerCubicMeter) => new Density(_value / 3.6127298147753e-5, DensityUnit.KilogramPerCubicMeter), - (DensityUnit.PoundPerCubicMeter, DensityUnit.KilogramPerCubicMeter) => new Density(_value / 2.204622621848775, DensityUnit.KilogramPerCubicMeter), - (DensityUnit.PoundPerCubicMillimeter, DensityUnit.KilogramPerCubicMeter) => new Density(_value / 2.204622621848775e-9, DensityUnit.KilogramPerCubicMeter), - (DensityUnit.PoundPerCubicYard, DensityUnit.KilogramPerCubicMeter) => new Density(_value * (0.45359237 / 0.9144 / 0.9144 / 0.9144), DensityUnit.KilogramPerCubicMeter), - (DensityUnit.PoundPerImperialGallon, DensityUnit.KilogramPerCubicMeter) => new Density(_value * 9.9776398e1, DensityUnit.KilogramPerCubicMeter), - (DensityUnit.PoundPerUSGallon, DensityUnit.KilogramPerCubicMeter) => new Density(_value * 1.19826427e2, DensityUnit.KilogramPerCubicMeter), - (DensityUnit.SlugPerCubicCentimeter, DensityUnit.KilogramPerCubicMeter) => new Density(_value * 14593903, DensityUnit.KilogramPerCubicMeter), - (DensityUnit.SlugPerCubicFoot, DensityUnit.KilogramPerCubicMeter) => new Density(_value * 515.378818, DensityUnit.KilogramPerCubicMeter), - (DensityUnit.SlugPerCubicInch, DensityUnit.KilogramPerCubicMeter) => new Density(_value * 890574.60201535, DensityUnit.KilogramPerCubicMeter), - (DensityUnit.SlugPerCubicMeter, DensityUnit.KilogramPerCubicMeter) => new Density(_value * 14.5939, DensityUnit.KilogramPerCubicMeter), - (DensityUnit.SlugPerCubicMillimeter, DensityUnit.KilogramPerCubicMeter) => new Density(_value * 14593903000, DensityUnit.KilogramPerCubicMeter), + (DensityUnit.PoundPerCubicCentimeter, DensityUnit.KilogramPerCubicMeter) => new Density(_value * 0.45359237e6, DensityUnit.KilogramPerCubicMeter), + (DensityUnit.PoundPerCubicFoot, DensityUnit.KilogramPerCubicMeter) => new Density(_value * 0.45359237 / 0.028316846592, DensityUnit.KilogramPerCubicMeter), + (DensityUnit.PoundPerCubicInch, DensityUnit.KilogramPerCubicMeter) => new Density(_value * 0.45359237 / 1.6387064e-5, DensityUnit.KilogramPerCubicMeter), + (DensityUnit.PoundPerCubicMeter, DensityUnit.KilogramPerCubicMeter) => new Density(_value * 0.45359237, DensityUnit.KilogramPerCubicMeter), + (DensityUnit.PoundPerCubicMillimeter, DensityUnit.KilogramPerCubicMeter) => new Density(_value * 0.45359237e9, DensityUnit.KilogramPerCubicMeter), + (DensityUnit.PoundPerCubicYard, DensityUnit.KilogramPerCubicMeter) => new Density(_value * 0.45359237 / 0.764554857984, DensityUnit.KilogramPerCubicMeter), + (DensityUnit.PoundPerImperialGallon, DensityUnit.KilogramPerCubicMeter) => new Density(_value * 0.45359237 / 0.00454609, DensityUnit.KilogramPerCubicMeter), + (DensityUnit.PoundPerUSGallon, DensityUnit.KilogramPerCubicMeter) => new Density(_value * 0.45359237 / 0.003785411784, DensityUnit.KilogramPerCubicMeter), + (DensityUnit.SlugPerCubicCentimeter, DensityUnit.KilogramPerCubicMeter) => new Density(_value * 0.45359237e6 * 9.80665 / 0.3048, DensityUnit.KilogramPerCubicMeter), + (DensityUnit.SlugPerCubicFoot, DensityUnit.KilogramPerCubicMeter) => new Density(_value * (0.45359237 * 9.80665) / (0.3048 * 0.028316846592), DensityUnit.KilogramPerCubicMeter), + (DensityUnit.SlugPerCubicInch, DensityUnit.KilogramPerCubicMeter) => new Density(_value * (0.45359237 * 9.80665) / (0.3048 * 1.6387064e-5), DensityUnit.KilogramPerCubicMeter), + (DensityUnit.SlugPerCubicMeter, DensityUnit.KilogramPerCubicMeter) => new Density(_value * 0.45359237 * 9.80665 / 0.3048, DensityUnit.KilogramPerCubicMeter), + (DensityUnit.SlugPerCubicMillimeter, DensityUnit.KilogramPerCubicMeter) => new Density(_value * 0.45359237e9 * 9.80665 / 0.3048, DensityUnit.KilogramPerCubicMeter), (DensityUnit.TonnePerCubicCentimeter, DensityUnit.KilogramPerCubicMeter) => new Density(_value / 1e-9, DensityUnit.KilogramPerCubicMeter), - (DensityUnit.TonnePerCubicFoot, DensityUnit.KilogramPerCubicMeter) => new Density(_value * 3.53146667214886e4, DensityUnit.KilogramPerCubicMeter), - (DensityUnit.TonnePerCubicInch, DensityUnit.KilogramPerCubicMeter) => new Density(_value * 6.10237440947323e7, DensityUnit.KilogramPerCubicMeter), + (DensityUnit.TonnePerCubicFoot, DensityUnit.KilogramPerCubicMeter) => new Density(_value * 1000 / 0.028316846592, DensityUnit.KilogramPerCubicMeter), + (DensityUnit.TonnePerCubicInch, DensityUnit.KilogramPerCubicMeter) => new Density(_value * 1000 / 1.6387064e-5, DensityUnit.KilogramPerCubicMeter), (DensityUnit.TonnePerCubicMeter, DensityUnit.KilogramPerCubicMeter) => new Density(_value / 0.001, DensityUnit.KilogramPerCubicMeter), (DensityUnit.TonnePerCubicMillimeter, DensityUnit.KilogramPerCubicMeter) => new Density(_value / 1e-12, DensityUnit.KilogramPerCubicMeter), @@ -1705,8 +1705,8 @@ private bool TryToUnit(DensityUnit unit, [NotNullWhen(true)] out Density? conver (DensityUnit.KilogramPerCubicMeter, DensityUnit.FemtogramPerLiter) => new Density((_value * 1) / 1e-15d, DensityUnit.FemtogramPerLiter), (DensityUnit.KilogramPerCubicMeter, DensityUnit.FemtogramPerMilliliter) => new Density((_value * 1e-3) / 1e-15d, DensityUnit.FemtogramPerMilliliter), (DensityUnit.KilogramPerCubicMeter, DensityUnit.GramPerCubicCentimeter) => new Density(_value * 1e-3, DensityUnit.GramPerCubicCentimeter), - (DensityUnit.KilogramPerCubicMeter, DensityUnit.GramPerCubicFoot) => new Density(_value / 0.0353146667214886, DensityUnit.GramPerCubicFoot), - (DensityUnit.KilogramPerCubicMeter, DensityUnit.GramPerCubicInch) => new Density(_value / 61.0237440947323, DensityUnit.GramPerCubicInch), + (DensityUnit.KilogramPerCubicMeter, DensityUnit.GramPerCubicFoot) => new Density(_value * 0.028316846592 / 0.001, DensityUnit.GramPerCubicFoot), + (DensityUnit.KilogramPerCubicMeter, DensityUnit.GramPerCubicInch) => new Density(_value * 1.6387064e-5 / 0.001, DensityUnit.GramPerCubicInch), (DensityUnit.KilogramPerCubicMeter, DensityUnit.GramPerCubicMeter) => new Density(_value * 1e3, DensityUnit.GramPerCubicMeter), (DensityUnit.KilogramPerCubicMeter, DensityUnit.GramPerCubicMillimeter) => new Density(_value * 1e-6, DensityUnit.GramPerCubicMillimeter), (DensityUnit.KilogramPerCubicMeter, DensityUnit.GramPerDeciliter) => new Density(_value * 1e-1, DensityUnit.GramPerDeciliter), @@ -1715,9 +1715,9 @@ private bool TryToUnit(DensityUnit unit, [NotNullWhen(true)] out Density? conver (DensityUnit.KilogramPerCubicMeter, DensityUnit.KilogramPerCubicCentimeter) => new Density((_value * 1e-3) / 1e3d, DensityUnit.KilogramPerCubicCentimeter), (DensityUnit.KilogramPerCubicMeter, DensityUnit.KilogramPerCubicMillimeter) => new Density((_value * 1e-6) / 1e3d, DensityUnit.KilogramPerCubicMillimeter), (DensityUnit.KilogramPerCubicMeter, DensityUnit.KilogramPerLiter) => new Density(_value / 1e3, DensityUnit.KilogramPerLiter), - (DensityUnit.KilogramPerCubicMeter, DensityUnit.KilopoundPerCubicFoot) => new Density((_value * 0.062427961) / 1e3d, DensityUnit.KilopoundPerCubicFoot), - (DensityUnit.KilogramPerCubicMeter, DensityUnit.KilopoundPerCubicInch) => new Density((_value * 3.6127298147753e-5) / 1e3d, DensityUnit.KilopoundPerCubicInch), - (DensityUnit.KilogramPerCubicMeter, DensityUnit.KilopoundPerCubicYard) => new Density((_value / (0.45359237 / 0.9144 / 0.9144 / 0.9144)) / 1e3d, DensityUnit.KilopoundPerCubicYard), + (DensityUnit.KilogramPerCubicMeter, DensityUnit.KilopoundPerCubicFoot) => new Density((_value * 0.028316846592 / 0.45359237) / 1e3d, DensityUnit.KilopoundPerCubicFoot), + (DensityUnit.KilogramPerCubicMeter, DensityUnit.KilopoundPerCubicInch) => new Density((_value * 1.6387064e-5 / 0.45359237) / 1e3d, DensityUnit.KilopoundPerCubicInch), + (DensityUnit.KilogramPerCubicMeter, DensityUnit.KilopoundPerCubicYard) => new Density((_value * 0.764554857984 / 0.45359237) / 1e3d, DensityUnit.KilopoundPerCubicYard), (DensityUnit.KilogramPerCubicMeter, DensityUnit.MicrogramPerCubicMeter) => new Density((_value * 1e3) / 1e-6d, DensityUnit.MicrogramPerCubicMeter), (DensityUnit.KilogramPerCubicMeter, DensityUnit.MicrogramPerDeciliter) => new Density((_value * 1e-1) / 1e-6d, DensityUnit.MicrogramPerDeciliter), (DensityUnit.KilogramPerCubicMeter, DensityUnit.MicrogramPerLiter) => new Density((_value * 1) / 1e-6d, DensityUnit.MicrogramPerLiter), @@ -1732,22 +1732,22 @@ private bool TryToUnit(DensityUnit unit, [NotNullWhen(true)] out Density? conver (DensityUnit.KilogramPerCubicMeter, DensityUnit.PicogramPerDeciliter) => new Density((_value * 1e-1) / 1e-12d, DensityUnit.PicogramPerDeciliter), (DensityUnit.KilogramPerCubicMeter, DensityUnit.PicogramPerLiter) => new Density((_value * 1) / 1e-12d, DensityUnit.PicogramPerLiter), (DensityUnit.KilogramPerCubicMeter, DensityUnit.PicogramPerMilliliter) => new Density((_value * 1e-3) / 1e-12d, DensityUnit.PicogramPerMilliliter), - (DensityUnit.KilogramPerCubicMeter, DensityUnit.PoundPerCubicCentimeter) => new Density(_value * 2.204622621848775e-6, DensityUnit.PoundPerCubicCentimeter), - (DensityUnit.KilogramPerCubicMeter, DensityUnit.PoundPerCubicFoot) => new Density(_value * 0.062427961, DensityUnit.PoundPerCubicFoot), - (DensityUnit.KilogramPerCubicMeter, DensityUnit.PoundPerCubicInch) => new Density(_value * 3.6127298147753e-5, DensityUnit.PoundPerCubicInch), - (DensityUnit.KilogramPerCubicMeter, DensityUnit.PoundPerCubicMeter) => new Density(_value * 2.204622621848775, DensityUnit.PoundPerCubicMeter), - (DensityUnit.KilogramPerCubicMeter, DensityUnit.PoundPerCubicMillimeter) => new Density(_value * 2.204622621848775e-9, DensityUnit.PoundPerCubicMillimeter), - (DensityUnit.KilogramPerCubicMeter, DensityUnit.PoundPerCubicYard) => new Density(_value / (0.45359237 / 0.9144 / 0.9144 / 0.9144), DensityUnit.PoundPerCubicYard), - (DensityUnit.KilogramPerCubicMeter, DensityUnit.PoundPerImperialGallon) => new Density(_value / 9.9776398e1, DensityUnit.PoundPerImperialGallon), - (DensityUnit.KilogramPerCubicMeter, DensityUnit.PoundPerUSGallon) => new Density(_value / 1.19826427e2, DensityUnit.PoundPerUSGallon), - (DensityUnit.KilogramPerCubicMeter, DensityUnit.SlugPerCubicCentimeter) => new Density(_value / 14593903, DensityUnit.SlugPerCubicCentimeter), - (DensityUnit.KilogramPerCubicMeter, DensityUnit.SlugPerCubicFoot) => new Density(_value * 0.00194032033, DensityUnit.SlugPerCubicFoot), - (DensityUnit.KilogramPerCubicMeter, DensityUnit.SlugPerCubicInch) => new Density(_value / 890574.60201535, DensityUnit.SlugPerCubicInch), - (DensityUnit.KilogramPerCubicMeter, DensityUnit.SlugPerCubicMeter) => new Density(_value / 14.5939, DensityUnit.SlugPerCubicMeter), - (DensityUnit.KilogramPerCubicMeter, DensityUnit.SlugPerCubicMillimeter) => new Density(_value / 14593903000, DensityUnit.SlugPerCubicMillimeter), + (DensityUnit.KilogramPerCubicMeter, DensityUnit.PoundPerCubicCentimeter) => new Density(_value / 0.45359237e6, DensityUnit.PoundPerCubicCentimeter), + (DensityUnit.KilogramPerCubicMeter, DensityUnit.PoundPerCubicFoot) => new Density(_value * 0.028316846592 / 0.45359237, DensityUnit.PoundPerCubicFoot), + (DensityUnit.KilogramPerCubicMeter, DensityUnit.PoundPerCubicInch) => new Density(_value * 1.6387064e-5 / 0.45359237, DensityUnit.PoundPerCubicInch), + (DensityUnit.KilogramPerCubicMeter, DensityUnit.PoundPerCubicMeter) => new Density(_value / 0.45359237, DensityUnit.PoundPerCubicMeter), + (DensityUnit.KilogramPerCubicMeter, DensityUnit.PoundPerCubicMillimeter) => new Density(_value / 0.45359237e9, DensityUnit.PoundPerCubicMillimeter), + (DensityUnit.KilogramPerCubicMeter, DensityUnit.PoundPerCubicYard) => new Density(_value * 0.764554857984 / 0.45359237, DensityUnit.PoundPerCubicYard), + (DensityUnit.KilogramPerCubicMeter, DensityUnit.PoundPerImperialGallon) => new Density(_value * 0.00454609 / 0.45359237, DensityUnit.PoundPerImperialGallon), + (DensityUnit.KilogramPerCubicMeter, DensityUnit.PoundPerUSGallon) => new Density(_value * 0.003785411784 / 0.45359237, DensityUnit.PoundPerUSGallon), + (DensityUnit.KilogramPerCubicMeter, DensityUnit.SlugPerCubicCentimeter) => new Density(_value * 0.3048 / (0.45359237e6 * 9.80665), DensityUnit.SlugPerCubicCentimeter), + (DensityUnit.KilogramPerCubicMeter, DensityUnit.SlugPerCubicFoot) => new Density(_value * (0.3048 * 0.028316846592) / (0.45359237 * 9.80665), DensityUnit.SlugPerCubicFoot), + (DensityUnit.KilogramPerCubicMeter, DensityUnit.SlugPerCubicInch) => new Density(_value * (0.3048 * 1.6387064e-5) / (0.45359237 * 9.80665), DensityUnit.SlugPerCubicInch), + (DensityUnit.KilogramPerCubicMeter, DensityUnit.SlugPerCubicMeter) => new Density(_value * 0.3048 / (0.45359237 * 9.80665), DensityUnit.SlugPerCubicMeter), + (DensityUnit.KilogramPerCubicMeter, DensityUnit.SlugPerCubicMillimeter) => new Density(_value * 0.3048 / (0.45359237e9 * 9.80665), DensityUnit.SlugPerCubicMillimeter), (DensityUnit.KilogramPerCubicMeter, DensityUnit.TonnePerCubicCentimeter) => new Density(_value * 1e-9, DensityUnit.TonnePerCubicCentimeter), - (DensityUnit.KilogramPerCubicMeter, DensityUnit.TonnePerCubicFoot) => new Density(_value / 3.53146667214886e4, DensityUnit.TonnePerCubicFoot), - (DensityUnit.KilogramPerCubicMeter, DensityUnit.TonnePerCubicInch) => new Density(_value / 6.10237440947323e7, DensityUnit.TonnePerCubicInch), + (DensityUnit.KilogramPerCubicMeter, DensityUnit.TonnePerCubicFoot) => new Density(_value * 0.028316846592 / 1000, DensityUnit.TonnePerCubicFoot), + (DensityUnit.KilogramPerCubicMeter, DensityUnit.TonnePerCubicInch) => new Density(_value * 1.6387064e-5 / 1000, DensityUnit.TonnePerCubicInch), (DensityUnit.KilogramPerCubicMeter, DensityUnit.TonnePerCubicMeter) => new Density(_value * 0.001, DensityUnit.TonnePerCubicMeter), (DensityUnit.KilogramPerCubicMeter, DensityUnit.TonnePerCubicMillimeter) => new Density(_value * 1e-12, DensityUnit.TonnePerCubicMillimeter), diff --git a/UnitsNet/GeneratedCode/Quantities/DynamicViscosity.g.cs b/UnitsNet/GeneratedCode/Quantities/DynamicViscosity.g.cs index 01c6a6de14..179bc68925 100644 --- a/UnitsNet/GeneratedCode/Quantities/DynamicViscosity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/DynamicViscosity.g.cs @@ -865,10 +865,10 @@ private bool TryToUnit(DynamicViscosityUnit unit, [NotNullWhen(true)] out Dynami (DynamicViscosityUnit.MillipascalSecond, DynamicViscosityUnit.NewtonSecondPerMeterSquared) => new DynamicViscosity((_value) * 1e-3d, DynamicViscosityUnit.NewtonSecondPerMeterSquared), (DynamicViscosityUnit.PascalSecond, DynamicViscosityUnit.NewtonSecondPerMeterSquared) => new DynamicViscosity(_value, DynamicViscosityUnit.NewtonSecondPerMeterSquared), (DynamicViscosityUnit.Poise, DynamicViscosityUnit.NewtonSecondPerMeterSquared) => new DynamicViscosity(_value / 10, DynamicViscosityUnit.NewtonSecondPerMeterSquared), - (DynamicViscosityUnit.PoundForceSecondPerSquareFoot, DynamicViscosityUnit.NewtonSecondPerMeterSquared) => new DynamicViscosity(_value * 4.7880258980335843e1, DynamicViscosityUnit.NewtonSecondPerMeterSquared), - (DynamicViscosityUnit.PoundForceSecondPerSquareInch, DynamicViscosityUnit.NewtonSecondPerMeterSquared) => new DynamicViscosity(_value * 6.8947572931683613e3, DynamicViscosityUnit.NewtonSecondPerMeterSquared), - (DynamicViscosityUnit.PoundPerFootSecond, DynamicViscosityUnit.NewtonSecondPerMeterSquared) => new DynamicViscosity(_value * 1.4881639, DynamicViscosityUnit.NewtonSecondPerMeterSquared), - (DynamicViscosityUnit.Reyn, DynamicViscosityUnit.NewtonSecondPerMeterSquared) => new DynamicViscosity(_value * 6.8947572931683613e3, DynamicViscosityUnit.NewtonSecondPerMeterSquared), + (DynamicViscosityUnit.PoundForceSecondPerSquareFoot, DynamicViscosityUnit.NewtonSecondPerMeterSquared) => new DynamicViscosity(_value * 4.4482216152605 / 9.290304e-2, DynamicViscosityUnit.NewtonSecondPerMeterSquared), + (DynamicViscosityUnit.PoundForceSecondPerSquareInch, DynamicViscosityUnit.NewtonSecondPerMeterSquared) => new DynamicViscosity(_value * 4.4482216152605 / 0.00064516, DynamicViscosityUnit.NewtonSecondPerMeterSquared), + (DynamicViscosityUnit.PoundPerFootSecond, DynamicViscosityUnit.NewtonSecondPerMeterSquared) => new DynamicViscosity(_value * 0.45359237 / 0.3048, DynamicViscosityUnit.NewtonSecondPerMeterSquared), + (DynamicViscosityUnit.Reyn, DynamicViscosityUnit.NewtonSecondPerMeterSquared) => new DynamicViscosity(_value * 4.4482216152605 / 0.00064516, DynamicViscosityUnit.NewtonSecondPerMeterSquared), // BaseUnit -> DynamicViscosityUnit (DynamicViscosityUnit.NewtonSecondPerMeterSquared, DynamicViscosityUnit.Centipoise) => new DynamicViscosity((_value * 10) / 1e-2d, DynamicViscosityUnit.Centipoise), @@ -876,10 +876,10 @@ private bool TryToUnit(DynamicViscosityUnit unit, [NotNullWhen(true)] out Dynami (DynamicViscosityUnit.NewtonSecondPerMeterSquared, DynamicViscosityUnit.MillipascalSecond) => new DynamicViscosity((_value) / 1e-3d, DynamicViscosityUnit.MillipascalSecond), (DynamicViscosityUnit.NewtonSecondPerMeterSquared, DynamicViscosityUnit.PascalSecond) => new DynamicViscosity(_value, DynamicViscosityUnit.PascalSecond), (DynamicViscosityUnit.NewtonSecondPerMeterSquared, DynamicViscosityUnit.Poise) => new DynamicViscosity(_value * 10, DynamicViscosityUnit.Poise), - (DynamicViscosityUnit.NewtonSecondPerMeterSquared, DynamicViscosityUnit.PoundForceSecondPerSquareFoot) => new DynamicViscosity(_value / 4.7880258980335843e1, DynamicViscosityUnit.PoundForceSecondPerSquareFoot), - (DynamicViscosityUnit.NewtonSecondPerMeterSquared, DynamicViscosityUnit.PoundForceSecondPerSquareInch) => new DynamicViscosity(_value / 6.8947572931683613e3, DynamicViscosityUnit.PoundForceSecondPerSquareInch), - (DynamicViscosityUnit.NewtonSecondPerMeterSquared, DynamicViscosityUnit.PoundPerFootSecond) => new DynamicViscosity(_value / 1.4881639, DynamicViscosityUnit.PoundPerFootSecond), - (DynamicViscosityUnit.NewtonSecondPerMeterSquared, DynamicViscosityUnit.Reyn) => new DynamicViscosity(_value / 6.8947572931683613e3, DynamicViscosityUnit.Reyn), + (DynamicViscosityUnit.NewtonSecondPerMeterSquared, DynamicViscosityUnit.PoundForceSecondPerSquareFoot) => new DynamicViscosity(_value * 9.290304e-2 / 4.4482216152605, DynamicViscosityUnit.PoundForceSecondPerSquareFoot), + (DynamicViscosityUnit.NewtonSecondPerMeterSquared, DynamicViscosityUnit.PoundForceSecondPerSquareInch) => new DynamicViscosity(_value * 0.00064516 / 4.4482216152605, DynamicViscosityUnit.PoundForceSecondPerSquareInch), + (DynamicViscosityUnit.NewtonSecondPerMeterSquared, DynamicViscosityUnit.PoundPerFootSecond) => new DynamicViscosity(_value * 0.3048 / 0.45359237, DynamicViscosityUnit.PoundPerFootSecond), + (DynamicViscosityUnit.NewtonSecondPerMeterSquared, DynamicViscosityUnit.Reyn) => new DynamicViscosity(_value * 0.00064516 / 4.4482216152605, DynamicViscosityUnit.Reyn), _ => null }; diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricConductivity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricConductivity.g.cs index f2b4c53439..b1ccb79a1c 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricConductivity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricConductivity.g.cs @@ -790,15 +790,15 @@ private bool TryToUnit(ElectricConductivityUnit unit, [NotNullWhen(true)] out El (ElectricConductivityUnit.MicrosiemensPerCentimeter, ElectricConductivityUnit.SiemensPerMeter) => new ElectricConductivity((_value * 1e2) * 1e-6d, ElectricConductivityUnit.SiemensPerMeter), (ElectricConductivityUnit.MillisiemensPerCentimeter, ElectricConductivityUnit.SiemensPerMeter) => new ElectricConductivity((_value * 1e2) * 1e-3d, ElectricConductivityUnit.SiemensPerMeter), (ElectricConductivityUnit.SiemensPerCentimeter, ElectricConductivityUnit.SiemensPerMeter) => new ElectricConductivity(_value * 1e2, ElectricConductivityUnit.SiemensPerMeter), - (ElectricConductivityUnit.SiemensPerFoot, ElectricConductivityUnit.SiemensPerMeter) => new ElectricConductivity(_value * 3.2808398950131234, ElectricConductivityUnit.SiemensPerMeter), - (ElectricConductivityUnit.SiemensPerInch, ElectricConductivityUnit.SiemensPerMeter) => new ElectricConductivity(_value * 3.937007874015748e1, ElectricConductivityUnit.SiemensPerMeter), + (ElectricConductivityUnit.SiemensPerFoot, ElectricConductivityUnit.SiemensPerMeter) => new ElectricConductivity(_value / 0.3048, ElectricConductivityUnit.SiemensPerMeter), + (ElectricConductivityUnit.SiemensPerInch, ElectricConductivityUnit.SiemensPerMeter) => new ElectricConductivity(_value / 2.54e-2, ElectricConductivityUnit.SiemensPerMeter), // BaseUnit -> ElectricConductivityUnit (ElectricConductivityUnit.SiemensPerMeter, ElectricConductivityUnit.MicrosiemensPerCentimeter) => new ElectricConductivity((_value / 1e2) / 1e-6d, ElectricConductivityUnit.MicrosiemensPerCentimeter), (ElectricConductivityUnit.SiemensPerMeter, ElectricConductivityUnit.MillisiemensPerCentimeter) => new ElectricConductivity((_value / 1e2) / 1e-3d, ElectricConductivityUnit.MillisiemensPerCentimeter), (ElectricConductivityUnit.SiemensPerMeter, ElectricConductivityUnit.SiemensPerCentimeter) => new ElectricConductivity(_value / 1e2, ElectricConductivityUnit.SiemensPerCentimeter), - (ElectricConductivityUnit.SiemensPerMeter, ElectricConductivityUnit.SiemensPerFoot) => new ElectricConductivity(_value / 3.2808398950131234, ElectricConductivityUnit.SiemensPerFoot), - (ElectricConductivityUnit.SiemensPerMeter, ElectricConductivityUnit.SiemensPerInch) => new ElectricConductivity(_value / 3.937007874015748e1, ElectricConductivityUnit.SiemensPerInch), + (ElectricConductivityUnit.SiemensPerMeter, ElectricConductivityUnit.SiemensPerFoot) => new ElectricConductivity(_value * 0.3048, ElectricConductivityUnit.SiemensPerFoot), + (ElectricConductivityUnit.SiemensPerMeter, ElectricConductivityUnit.SiemensPerInch) => new ElectricConductivity(_value * 2.54e-2, ElectricConductivityUnit.SiemensPerInch), _ => null }; diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs index 606da32777..3515d52d93 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricCurrentDensity.g.cs @@ -728,12 +728,12 @@ private bool TryToUnit(ElectricCurrentDensityUnit unit, [NotNullWhen(true)] out ElectricCurrentDensity? convertedOrNull = (Unit, unit) switch { // ElectricCurrentDensityUnit -> BaseUnit - (ElectricCurrentDensityUnit.AmperePerSquareFoot, ElectricCurrentDensityUnit.AmperePerSquareMeter) => new ElectricCurrentDensity(_value * 1.0763910416709722e1, ElectricCurrentDensityUnit.AmperePerSquareMeter), - (ElectricCurrentDensityUnit.AmperePerSquareInch, ElectricCurrentDensityUnit.AmperePerSquareMeter) => new ElectricCurrentDensity(_value * 1.5500031000062000e3, ElectricCurrentDensityUnit.AmperePerSquareMeter), + (ElectricCurrentDensityUnit.AmperePerSquareFoot, ElectricCurrentDensityUnit.AmperePerSquareMeter) => new ElectricCurrentDensity(_value / 9.290304e-2, ElectricCurrentDensityUnit.AmperePerSquareMeter), + (ElectricCurrentDensityUnit.AmperePerSquareInch, ElectricCurrentDensityUnit.AmperePerSquareMeter) => new ElectricCurrentDensity(_value / 0.00064516, ElectricCurrentDensityUnit.AmperePerSquareMeter), // BaseUnit -> ElectricCurrentDensityUnit - (ElectricCurrentDensityUnit.AmperePerSquareMeter, ElectricCurrentDensityUnit.AmperePerSquareFoot) => new ElectricCurrentDensity(_value / 1.0763910416709722e1, ElectricCurrentDensityUnit.AmperePerSquareFoot), - (ElectricCurrentDensityUnit.AmperePerSquareMeter, ElectricCurrentDensityUnit.AmperePerSquareInch) => new ElectricCurrentDensity(_value / 1.5500031000062000e3, ElectricCurrentDensityUnit.AmperePerSquareInch), + (ElectricCurrentDensityUnit.AmperePerSquareMeter, ElectricCurrentDensityUnit.AmperePerSquareFoot) => new ElectricCurrentDensity(_value * 9.290304e-2, ElectricCurrentDensityUnit.AmperePerSquareFoot), + (ElectricCurrentDensityUnit.AmperePerSquareMeter, ElectricCurrentDensityUnit.AmperePerSquareInch) => new ElectricCurrentDensity(_value * 0.00064516, ElectricCurrentDensityUnit.AmperePerSquareInch), _ => null }; diff --git a/UnitsNet/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs index 5fc4c68371..cf35e233e7 100644 --- a/UnitsNet/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ElectricSurfaceChargeDensity.g.cs @@ -729,11 +729,11 @@ private bool TryToUnit(ElectricSurfaceChargeDensityUnit unit, [NotNullWhen(true) { // ElectricSurfaceChargeDensityUnit -> BaseUnit (ElectricSurfaceChargeDensityUnit.CoulombPerSquareCentimeter, ElectricSurfaceChargeDensityUnit.CoulombPerSquareMeter) => new ElectricSurfaceChargeDensity(_value * 1.0e4, ElectricSurfaceChargeDensityUnit.CoulombPerSquareMeter), - (ElectricSurfaceChargeDensityUnit.CoulombPerSquareInch, ElectricSurfaceChargeDensityUnit.CoulombPerSquareMeter) => new ElectricSurfaceChargeDensity(_value * 1.5500031000062000e3, ElectricSurfaceChargeDensityUnit.CoulombPerSquareMeter), + (ElectricSurfaceChargeDensityUnit.CoulombPerSquareInch, ElectricSurfaceChargeDensityUnit.CoulombPerSquareMeter) => new ElectricSurfaceChargeDensity(_value / 0.00064516, ElectricSurfaceChargeDensityUnit.CoulombPerSquareMeter), // BaseUnit -> ElectricSurfaceChargeDensityUnit (ElectricSurfaceChargeDensityUnit.CoulombPerSquareMeter, ElectricSurfaceChargeDensityUnit.CoulombPerSquareCentimeter) => new ElectricSurfaceChargeDensity(_value / 1.0e4, ElectricSurfaceChargeDensityUnit.CoulombPerSquareCentimeter), - (ElectricSurfaceChargeDensityUnit.CoulombPerSquareMeter, ElectricSurfaceChargeDensityUnit.CoulombPerSquareInch) => new ElectricSurfaceChargeDensity(_value / 1.5500031000062000e3, ElectricSurfaceChargeDensityUnit.CoulombPerSquareInch), + (ElectricSurfaceChargeDensityUnit.CoulombPerSquareMeter, ElectricSurfaceChargeDensityUnit.CoulombPerSquareInch) => new ElectricSurfaceChargeDensity(_value * 0.00064516, ElectricSurfaceChargeDensityUnit.CoulombPerSquareInch), _ => null }; diff --git a/UnitsNet/GeneratedCode/Quantities/Energy.g.cs b/UnitsNet/GeneratedCode/Quantities/Energy.g.cs index 4f6fbbbae6..ee650dd3b1 100644 --- a/UnitsNet/GeneratedCode/Quantities/Energy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Energy.g.cs @@ -1419,24 +1419,24 @@ private bool TryToUnit(EnergyUnit unit, [NotNullWhen(true)] out Energy? converte (EnergyUnit.DecathermEc, EnergyUnit.Joule) => new Energy((_value * 1.05505585262e8) * 1e1d, EnergyUnit.Joule), (EnergyUnit.DecathermImperial, EnergyUnit.Joule) => new Energy((_value * 1.05505585257348e8) * 1e1d, EnergyUnit.Joule), (EnergyUnit.DecathermUs, EnergyUnit.Joule) => new Energy((_value * 1.054804e8) * 1e1d, EnergyUnit.Joule), - (EnergyUnit.ElectronVolt, EnergyUnit.Joule) => new Energy(_value * 1.602176565e-19, EnergyUnit.Joule), + (EnergyUnit.ElectronVolt, EnergyUnit.Joule) => new Energy(_value * 1.602176634e-19, EnergyUnit.Joule), (EnergyUnit.Erg, EnergyUnit.Joule) => new Energy(_value * 1e-7, EnergyUnit.Joule), - (EnergyUnit.FootPound, EnergyUnit.Joule) => new Energy(_value * 1.355817948, EnergyUnit.Joule), + (EnergyUnit.FootPound, EnergyUnit.Joule) => new Energy(_value * 1.3558179483314004, EnergyUnit.Joule), (EnergyUnit.GigabritishThermalUnit, EnergyUnit.Joule) => new Energy((_value * 1055.05585262) * 1e9d, EnergyUnit.Joule), - (EnergyUnit.GigaelectronVolt, EnergyUnit.Joule) => new Energy((_value * 1.602176565e-19) * 1e9d, EnergyUnit.Joule), + (EnergyUnit.GigaelectronVolt, EnergyUnit.Joule) => new Energy((_value * 1.602176634e-19) * 1e9d, EnergyUnit.Joule), (EnergyUnit.Gigajoule, EnergyUnit.Joule) => new Energy((_value) * 1e9d, EnergyUnit.Joule), (EnergyUnit.GigawattDay, EnergyUnit.Joule) => new Energy((_value * 24 * 3600d) * 1e9d, EnergyUnit.Joule), (EnergyUnit.GigawattHour, EnergyUnit.Joule) => new Energy((_value * 3600d) * 1e9d, EnergyUnit.Joule), - (EnergyUnit.HorsepowerHour, EnergyUnit.Joule) => new Energy(_value * 2.6845195377e6, EnergyUnit.Joule), + (EnergyUnit.HorsepowerHour, EnergyUnit.Joule) => new Energy(_value * 76.0402249 * 9.80665 * 3600, EnergyUnit.Joule), (EnergyUnit.KilobritishThermalUnit, EnergyUnit.Joule) => new Energy((_value * 1055.05585262) * 1e3d, EnergyUnit.Joule), (EnergyUnit.Kilocalorie, EnergyUnit.Joule) => new Energy((_value * 4.184) * 1e3d, EnergyUnit.Joule), - (EnergyUnit.KiloelectronVolt, EnergyUnit.Joule) => new Energy((_value * 1.602176565e-19) * 1e3d, EnergyUnit.Joule), + (EnergyUnit.KiloelectronVolt, EnergyUnit.Joule) => new Energy((_value * 1.602176634e-19) * 1e3d, EnergyUnit.Joule), (EnergyUnit.Kilojoule, EnergyUnit.Joule) => new Energy((_value) * 1e3d, EnergyUnit.Joule), (EnergyUnit.KilowattDay, EnergyUnit.Joule) => new Energy((_value * 24 * 3600d) * 1e3d, EnergyUnit.Joule), (EnergyUnit.KilowattHour, EnergyUnit.Joule) => new Energy((_value * 3600d) * 1e3d, EnergyUnit.Joule), (EnergyUnit.MegabritishThermalUnit, EnergyUnit.Joule) => new Energy((_value * 1055.05585262) * 1e6d, EnergyUnit.Joule), (EnergyUnit.Megacalorie, EnergyUnit.Joule) => new Energy((_value * 4.184) * 1e6d, EnergyUnit.Joule), - (EnergyUnit.MegaelectronVolt, EnergyUnit.Joule) => new Energy((_value * 1.602176565e-19) * 1e6d, EnergyUnit.Joule), + (EnergyUnit.MegaelectronVolt, EnergyUnit.Joule) => new Energy((_value * 1.602176634e-19) * 1e6d, EnergyUnit.Joule), (EnergyUnit.Megajoule, EnergyUnit.Joule) => new Energy((_value) * 1e6d, EnergyUnit.Joule), (EnergyUnit.MegawattDay, EnergyUnit.Joule) => new Energy((_value * 24 * 3600d) * 1e6d, EnergyUnit.Joule), (EnergyUnit.MegawattHour, EnergyUnit.Joule) => new Energy((_value * 3600d) * 1e6d, EnergyUnit.Joule), @@ -1444,7 +1444,7 @@ private bool TryToUnit(EnergyUnit unit, [NotNullWhen(true)] out Energy? converte (EnergyUnit.Millijoule, EnergyUnit.Joule) => new Energy((_value) * 1e-3d, EnergyUnit.Joule), (EnergyUnit.Nanojoule, EnergyUnit.Joule) => new Energy((_value) * 1e-9d, EnergyUnit.Joule), (EnergyUnit.Petajoule, EnergyUnit.Joule) => new Energy((_value) * 1e15d, EnergyUnit.Joule), - (EnergyUnit.TeraelectronVolt, EnergyUnit.Joule) => new Energy((_value * 1.602176565e-19) * 1e12d, EnergyUnit.Joule), + (EnergyUnit.TeraelectronVolt, EnergyUnit.Joule) => new Energy((_value * 1.602176634e-19) * 1e12d, EnergyUnit.Joule), (EnergyUnit.Terajoule, EnergyUnit.Joule) => new Energy((_value) * 1e12d, EnergyUnit.Joule), (EnergyUnit.TerawattDay, EnergyUnit.Joule) => new Energy((_value * 24 * 3600d) * 1e12d, EnergyUnit.Joule), (EnergyUnit.TerawattHour, EnergyUnit.Joule) => new Energy((_value * 3600d) * 1e12d, EnergyUnit.Joule), @@ -1460,24 +1460,24 @@ private bool TryToUnit(EnergyUnit unit, [NotNullWhen(true)] out Energy? converte (EnergyUnit.Joule, EnergyUnit.DecathermEc) => new Energy((_value / 1.05505585262e8) / 1e1d, EnergyUnit.DecathermEc), (EnergyUnit.Joule, EnergyUnit.DecathermImperial) => new Energy((_value / 1.05505585257348e8) / 1e1d, EnergyUnit.DecathermImperial), (EnergyUnit.Joule, EnergyUnit.DecathermUs) => new Energy((_value / 1.054804e8) / 1e1d, EnergyUnit.DecathermUs), - (EnergyUnit.Joule, EnergyUnit.ElectronVolt) => new Energy(_value / 1.602176565e-19, EnergyUnit.ElectronVolt), + (EnergyUnit.Joule, EnergyUnit.ElectronVolt) => new Energy(_value / 1.602176634e-19, EnergyUnit.ElectronVolt), (EnergyUnit.Joule, EnergyUnit.Erg) => new Energy(_value / 1e-7, EnergyUnit.Erg), - (EnergyUnit.Joule, EnergyUnit.FootPound) => new Energy(_value / 1.355817948, EnergyUnit.FootPound), + (EnergyUnit.Joule, EnergyUnit.FootPound) => new Energy(_value / 1.3558179483314004, EnergyUnit.FootPound), (EnergyUnit.Joule, EnergyUnit.GigabritishThermalUnit) => new Energy((_value / 1055.05585262) / 1e9d, EnergyUnit.GigabritishThermalUnit), - (EnergyUnit.Joule, EnergyUnit.GigaelectronVolt) => new Energy((_value / 1.602176565e-19) / 1e9d, EnergyUnit.GigaelectronVolt), + (EnergyUnit.Joule, EnergyUnit.GigaelectronVolt) => new Energy((_value / 1.602176634e-19) / 1e9d, EnergyUnit.GigaelectronVolt), (EnergyUnit.Joule, EnergyUnit.Gigajoule) => new Energy((_value) / 1e9d, EnergyUnit.Gigajoule), (EnergyUnit.Joule, EnergyUnit.GigawattDay) => new Energy((_value / (24 * 3600d)) / 1e9d, EnergyUnit.GigawattDay), (EnergyUnit.Joule, EnergyUnit.GigawattHour) => new Energy((_value / 3600d) / 1e9d, EnergyUnit.GigawattHour), - (EnergyUnit.Joule, EnergyUnit.HorsepowerHour) => new Energy(_value / 2.6845195377e6, EnergyUnit.HorsepowerHour), + (EnergyUnit.Joule, EnergyUnit.HorsepowerHour) => new Energy(_value / (76.0402249 * 9.80665 * 3600), EnergyUnit.HorsepowerHour), (EnergyUnit.Joule, EnergyUnit.KilobritishThermalUnit) => new Energy((_value / 1055.05585262) / 1e3d, EnergyUnit.KilobritishThermalUnit), (EnergyUnit.Joule, EnergyUnit.Kilocalorie) => new Energy((_value / 4.184) / 1e3d, EnergyUnit.Kilocalorie), - (EnergyUnit.Joule, EnergyUnit.KiloelectronVolt) => new Energy((_value / 1.602176565e-19) / 1e3d, EnergyUnit.KiloelectronVolt), + (EnergyUnit.Joule, EnergyUnit.KiloelectronVolt) => new Energy((_value / 1.602176634e-19) / 1e3d, EnergyUnit.KiloelectronVolt), (EnergyUnit.Joule, EnergyUnit.Kilojoule) => new Energy((_value) / 1e3d, EnergyUnit.Kilojoule), (EnergyUnit.Joule, EnergyUnit.KilowattDay) => new Energy((_value / (24 * 3600d)) / 1e3d, EnergyUnit.KilowattDay), (EnergyUnit.Joule, EnergyUnit.KilowattHour) => new Energy((_value / 3600d) / 1e3d, EnergyUnit.KilowattHour), (EnergyUnit.Joule, EnergyUnit.MegabritishThermalUnit) => new Energy((_value / 1055.05585262) / 1e6d, EnergyUnit.MegabritishThermalUnit), (EnergyUnit.Joule, EnergyUnit.Megacalorie) => new Energy((_value / 4.184) / 1e6d, EnergyUnit.Megacalorie), - (EnergyUnit.Joule, EnergyUnit.MegaelectronVolt) => new Energy((_value / 1.602176565e-19) / 1e6d, EnergyUnit.MegaelectronVolt), + (EnergyUnit.Joule, EnergyUnit.MegaelectronVolt) => new Energy((_value / 1.602176634e-19) / 1e6d, EnergyUnit.MegaelectronVolt), (EnergyUnit.Joule, EnergyUnit.Megajoule) => new Energy((_value) / 1e6d, EnergyUnit.Megajoule), (EnergyUnit.Joule, EnergyUnit.MegawattDay) => new Energy((_value / (24 * 3600d)) / 1e6d, EnergyUnit.MegawattDay), (EnergyUnit.Joule, EnergyUnit.MegawattHour) => new Energy((_value / 3600d) / 1e6d, EnergyUnit.MegawattHour), @@ -1485,7 +1485,7 @@ private bool TryToUnit(EnergyUnit unit, [NotNullWhen(true)] out Energy? converte (EnergyUnit.Joule, EnergyUnit.Millijoule) => new Energy((_value) / 1e-3d, EnergyUnit.Millijoule), (EnergyUnit.Joule, EnergyUnit.Nanojoule) => new Energy((_value) / 1e-9d, EnergyUnit.Nanojoule), (EnergyUnit.Joule, EnergyUnit.Petajoule) => new Energy((_value) / 1e15d, EnergyUnit.Petajoule), - (EnergyUnit.Joule, EnergyUnit.TeraelectronVolt) => new Energy((_value / 1.602176565e-19) / 1e12d, EnergyUnit.TeraelectronVolt), + (EnergyUnit.Joule, EnergyUnit.TeraelectronVolt) => new Energy((_value / 1.602176634e-19) / 1e12d, EnergyUnit.TeraelectronVolt), (EnergyUnit.Joule, EnergyUnit.Terajoule) => new Energy((_value) / 1e12d, EnergyUnit.Terajoule), (EnergyUnit.Joule, EnergyUnit.TerawattDay) => new Energy((_value / (24 * 3600d)) / 1e12d, EnergyUnit.TerawattDay), (EnergyUnit.Joule, EnergyUnit.TerawattHour) => new Energy((_value / 3600d) / 1e12d, EnergyUnit.TerawattHour), diff --git a/UnitsNet/GeneratedCode/Quantities/ForceChangeRate.g.cs b/UnitsNet/GeneratedCode/Quantities/ForceChangeRate.g.cs index a00de07247..3d2948e876 100644 --- a/UnitsNet/GeneratedCode/Quantities/ForceChangeRate.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ForceChangeRate.g.cs @@ -936,14 +936,14 @@ private bool TryToUnit(ForceChangeRateUnit unit, [NotNullWhen(true)] out ForceCh (ForceChangeRateUnit.DecinewtonPerSecond, ForceChangeRateUnit.NewtonPerSecond) => new ForceChangeRate((_value) * 1e-1d, ForceChangeRateUnit.NewtonPerSecond), (ForceChangeRateUnit.KilonewtonPerMinute, ForceChangeRateUnit.NewtonPerSecond) => new ForceChangeRate((_value / 60) * 1e3d, ForceChangeRateUnit.NewtonPerSecond), (ForceChangeRateUnit.KilonewtonPerSecond, ForceChangeRateUnit.NewtonPerSecond) => new ForceChangeRate((_value) * 1e3d, ForceChangeRateUnit.NewtonPerSecond), - (ForceChangeRateUnit.KilopoundForcePerMinute, ForceChangeRateUnit.NewtonPerSecond) => new ForceChangeRate((_value * 4.4482216152605095551842641431421 / 60) * 1e3d, ForceChangeRateUnit.NewtonPerSecond), - (ForceChangeRateUnit.KilopoundForcePerSecond, ForceChangeRateUnit.NewtonPerSecond) => new ForceChangeRate((_value * 4.4482216152605095551842641431421) * 1e3d, ForceChangeRateUnit.NewtonPerSecond), + (ForceChangeRateUnit.KilopoundForcePerMinute, ForceChangeRateUnit.NewtonPerSecond) => new ForceChangeRate((_value * 4.4482216152605 / 60) * 1e3d, ForceChangeRateUnit.NewtonPerSecond), + (ForceChangeRateUnit.KilopoundForcePerSecond, ForceChangeRateUnit.NewtonPerSecond) => new ForceChangeRate((_value * 4.4482216152605) * 1e3d, ForceChangeRateUnit.NewtonPerSecond), (ForceChangeRateUnit.MicronewtonPerSecond, ForceChangeRateUnit.NewtonPerSecond) => new ForceChangeRate((_value) * 1e-6d, ForceChangeRateUnit.NewtonPerSecond), (ForceChangeRateUnit.MillinewtonPerSecond, ForceChangeRateUnit.NewtonPerSecond) => new ForceChangeRate((_value) * 1e-3d, ForceChangeRateUnit.NewtonPerSecond), (ForceChangeRateUnit.NanonewtonPerSecond, ForceChangeRateUnit.NewtonPerSecond) => new ForceChangeRate((_value) * 1e-9d, ForceChangeRateUnit.NewtonPerSecond), (ForceChangeRateUnit.NewtonPerMinute, ForceChangeRateUnit.NewtonPerSecond) => new ForceChangeRate(_value / 60, ForceChangeRateUnit.NewtonPerSecond), - (ForceChangeRateUnit.PoundForcePerMinute, ForceChangeRateUnit.NewtonPerSecond) => new ForceChangeRate(_value * 4.4482216152605095551842641431421 / 60, ForceChangeRateUnit.NewtonPerSecond), - (ForceChangeRateUnit.PoundForcePerSecond, ForceChangeRateUnit.NewtonPerSecond) => new ForceChangeRate(_value * 4.4482216152605095551842641431421, ForceChangeRateUnit.NewtonPerSecond), + (ForceChangeRateUnit.PoundForcePerMinute, ForceChangeRateUnit.NewtonPerSecond) => new ForceChangeRate(_value * 4.4482216152605 / 60, ForceChangeRateUnit.NewtonPerSecond), + (ForceChangeRateUnit.PoundForcePerSecond, ForceChangeRateUnit.NewtonPerSecond) => new ForceChangeRate(_value * 4.4482216152605, ForceChangeRateUnit.NewtonPerSecond), // BaseUnit -> ForceChangeRateUnit (ForceChangeRateUnit.NewtonPerSecond, ForceChangeRateUnit.CentinewtonPerSecond) => new ForceChangeRate((_value) / 1e-2d, ForceChangeRateUnit.CentinewtonPerSecond), @@ -952,14 +952,14 @@ private bool TryToUnit(ForceChangeRateUnit unit, [NotNullWhen(true)] out ForceCh (ForceChangeRateUnit.NewtonPerSecond, ForceChangeRateUnit.DecinewtonPerSecond) => new ForceChangeRate((_value) / 1e-1d, ForceChangeRateUnit.DecinewtonPerSecond), (ForceChangeRateUnit.NewtonPerSecond, ForceChangeRateUnit.KilonewtonPerMinute) => new ForceChangeRate((_value * 60) / 1e3d, ForceChangeRateUnit.KilonewtonPerMinute), (ForceChangeRateUnit.NewtonPerSecond, ForceChangeRateUnit.KilonewtonPerSecond) => new ForceChangeRate((_value) / 1e3d, ForceChangeRateUnit.KilonewtonPerSecond), - (ForceChangeRateUnit.NewtonPerSecond, ForceChangeRateUnit.KilopoundForcePerMinute) => new ForceChangeRate((_value / 4.4482216152605095551842641431421 * 60) / 1e3d, ForceChangeRateUnit.KilopoundForcePerMinute), - (ForceChangeRateUnit.NewtonPerSecond, ForceChangeRateUnit.KilopoundForcePerSecond) => new ForceChangeRate((_value / 4.4482216152605095551842641431421) / 1e3d, ForceChangeRateUnit.KilopoundForcePerSecond), + (ForceChangeRateUnit.NewtonPerSecond, ForceChangeRateUnit.KilopoundForcePerMinute) => new ForceChangeRate((_value / 4.4482216152605 * 60) / 1e3d, ForceChangeRateUnit.KilopoundForcePerMinute), + (ForceChangeRateUnit.NewtonPerSecond, ForceChangeRateUnit.KilopoundForcePerSecond) => new ForceChangeRate((_value / 4.4482216152605) / 1e3d, ForceChangeRateUnit.KilopoundForcePerSecond), (ForceChangeRateUnit.NewtonPerSecond, ForceChangeRateUnit.MicronewtonPerSecond) => new ForceChangeRate((_value) / 1e-6d, ForceChangeRateUnit.MicronewtonPerSecond), (ForceChangeRateUnit.NewtonPerSecond, ForceChangeRateUnit.MillinewtonPerSecond) => new ForceChangeRate((_value) / 1e-3d, ForceChangeRateUnit.MillinewtonPerSecond), (ForceChangeRateUnit.NewtonPerSecond, ForceChangeRateUnit.NanonewtonPerSecond) => new ForceChangeRate((_value) / 1e-9d, ForceChangeRateUnit.NanonewtonPerSecond), (ForceChangeRateUnit.NewtonPerSecond, ForceChangeRateUnit.NewtonPerMinute) => new ForceChangeRate(_value * 60, ForceChangeRateUnit.NewtonPerMinute), - (ForceChangeRateUnit.NewtonPerSecond, ForceChangeRateUnit.PoundForcePerMinute) => new ForceChangeRate(_value / 4.4482216152605095551842641431421 * 60, ForceChangeRateUnit.PoundForcePerMinute), - (ForceChangeRateUnit.NewtonPerSecond, ForceChangeRateUnit.PoundForcePerSecond) => new ForceChangeRate(_value / 4.4482216152605095551842641431421, ForceChangeRateUnit.PoundForcePerSecond), + (ForceChangeRateUnit.NewtonPerSecond, ForceChangeRateUnit.PoundForcePerMinute) => new ForceChangeRate(_value / 4.4482216152605 * 60, ForceChangeRateUnit.PoundForcePerMinute), + (ForceChangeRateUnit.NewtonPerSecond, ForceChangeRateUnit.PoundForcePerSecond) => new ForceChangeRate(_value / 4.4482216152605, ForceChangeRateUnit.PoundForcePerSecond), _ => null }; diff --git a/UnitsNet/GeneratedCode/Quantities/ForcePerLength.g.cs b/UnitsNet/GeneratedCode/Quantities/ForcePerLength.g.cs index 5efb9bc1b4..5c4934c44c 100644 --- a/UnitsNet/GeneratedCode/Quantities/ForcePerLength.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ForcePerLength.g.cs @@ -1363,14 +1363,14 @@ private bool TryToUnit(ForcePerLengthUnit unit, [NotNullWhen(true)] out ForcePer (ForcePerLengthUnit.DecinewtonPerCentimeter, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength((_value * 1e2) * 1e-1d, ForcePerLengthUnit.NewtonPerMeter), (ForcePerLengthUnit.DecinewtonPerMeter, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength((_value) * 1e-1d, ForcePerLengthUnit.NewtonPerMeter), (ForcePerLengthUnit.DecinewtonPerMillimeter, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength((_value * 1e3) * 1e-1d, ForcePerLengthUnit.NewtonPerMeter), - (ForcePerLengthUnit.KilogramForcePerCentimeter, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength(_value * 980.665002864, ForcePerLengthUnit.NewtonPerMeter), - (ForcePerLengthUnit.KilogramForcePerMeter, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength(_value * 9.80665002864, ForcePerLengthUnit.NewtonPerMeter), - (ForcePerLengthUnit.KilogramForcePerMillimeter, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength(_value * 9.80665002864e3, ForcePerLengthUnit.NewtonPerMeter), + (ForcePerLengthUnit.KilogramForcePerCentimeter, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength(_value * 980.665, ForcePerLengthUnit.NewtonPerMeter), + (ForcePerLengthUnit.KilogramForcePerMeter, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength(_value * 9.80665, ForcePerLengthUnit.NewtonPerMeter), + (ForcePerLengthUnit.KilogramForcePerMillimeter, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength(_value * 9.80665e3, ForcePerLengthUnit.NewtonPerMeter), (ForcePerLengthUnit.KilonewtonPerCentimeter, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength((_value * 1e2) * 1e3d, ForcePerLengthUnit.NewtonPerMeter), (ForcePerLengthUnit.KilonewtonPerMeter, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength((_value) * 1e3d, ForcePerLengthUnit.NewtonPerMeter), (ForcePerLengthUnit.KilonewtonPerMillimeter, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength((_value * 1e3) * 1e3d, ForcePerLengthUnit.NewtonPerMeter), - (ForcePerLengthUnit.KilopoundForcePerFoot, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength(_value * 14593.90292, ForcePerLengthUnit.NewtonPerMeter), - (ForcePerLengthUnit.KilopoundForcePerInch, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength(_value * 1.75126835e5, ForcePerLengthUnit.NewtonPerMeter), + (ForcePerLengthUnit.KilopoundForcePerFoot, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength(_value * 4.4482216152605 / 0.3048e-3, ForcePerLengthUnit.NewtonPerMeter), + (ForcePerLengthUnit.KilopoundForcePerInch, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength(_value * 4.4482216152605 / 2.54e-5, ForcePerLengthUnit.NewtonPerMeter), (ForcePerLengthUnit.MeganewtonPerCentimeter, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength((_value * 1e2) * 1e6d, ForcePerLengthUnit.NewtonPerMeter), (ForcePerLengthUnit.MeganewtonPerMeter, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength((_value) * 1e6d, ForcePerLengthUnit.NewtonPerMeter), (ForcePerLengthUnit.MeganewtonPerMillimeter, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength((_value * 1e3) * 1e6d, ForcePerLengthUnit.NewtonPerMeter), @@ -1385,12 +1385,12 @@ private bool TryToUnit(ForcePerLengthUnit unit, [NotNullWhen(true)] out ForcePer (ForcePerLengthUnit.NanonewtonPerMillimeter, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength((_value * 1e3) * 1e-9d, ForcePerLengthUnit.NewtonPerMeter), (ForcePerLengthUnit.NewtonPerCentimeter, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength(_value * 1e2, ForcePerLengthUnit.NewtonPerMeter), (ForcePerLengthUnit.NewtonPerMillimeter, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength(_value * 1e3, ForcePerLengthUnit.NewtonPerMeter), - (ForcePerLengthUnit.PoundForcePerFoot, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength(_value * 14.59390292, ForcePerLengthUnit.NewtonPerMeter), - (ForcePerLengthUnit.PoundForcePerInch, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength(_value * 1.75126835e2, ForcePerLengthUnit.NewtonPerMeter), - (ForcePerLengthUnit.PoundForcePerYard, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength(_value * 4.864634307, ForcePerLengthUnit.NewtonPerMeter), - (ForcePerLengthUnit.TonneForcePerCentimeter, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength(_value * 9.80665002864e5, ForcePerLengthUnit.NewtonPerMeter), - (ForcePerLengthUnit.TonneForcePerMeter, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength(_value * 9.80665002864e3, ForcePerLengthUnit.NewtonPerMeter), - (ForcePerLengthUnit.TonneForcePerMillimeter, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength(_value * 9.80665002864e6, ForcePerLengthUnit.NewtonPerMeter), + (ForcePerLengthUnit.PoundForcePerFoot, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength(_value * 4.4482216152605 / 0.3048, ForcePerLengthUnit.NewtonPerMeter), + (ForcePerLengthUnit.PoundForcePerInch, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength(_value * 4.4482216152605 / 2.54e-2, ForcePerLengthUnit.NewtonPerMeter), + (ForcePerLengthUnit.PoundForcePerYard, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength(_value * 4.4482216152605 / 0.9144, ForcePerLengthUnit.NewtonPerMeter), + (ForcePerLengthUnit.TonneForcePerCentimeter, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength(_value * 9.80665e5, ForcePerLengthUnit.NewtonPerMeter), + (ForcePerLengthUnit.TonneForcePerMeter, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength(_value * 9.80665e3, ForcePerLengthUnit.NewtonPerMeter), + (ForcePerLengthUnit.TonneForcePerMillimeter, ForcePerLengthUnit.NewtonPerMeter) => new ForcePerLength(_value * 9.80665e6, ForcePerLengthUnit.NewtonPerMeter), // BaseUnit -> ForcePerLengthUnit (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.CentinewtonPerCentimeter) => new ForcePerLength((_value / 1e2) / 1e-2d, ForcePerLengthUnit.CentinewtonPerCentimeter), @@ -1402,14 +1402,14 @@ private bool TryToUnit(ForcePerLengthUnit unit, [NotNullWhen(true)] out ForcePer (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.DecinewtonPerCentimeter) => new ForcePerLength((_value / 1e2) / 1e-1d, ForcePerLengthUnit.DecinewtonPerCentimeter), (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.DecinewtonPerMeter) => new ForcePerLength((_value) / 1e-1d, ForcePerLengthUnit.DecinewtonPerMeter), (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.DecinewtonPerMillimeter) => new ForcePerLength((_value / 1e3) / 1e-1d, ForcePerLengthUnit.DecinewtonPerMillimeter), - (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.KilogramForcePerCentimeter) => new ForcePerLength(_value / 980.665002864, ForcePerLengthUnit.KilogramForcePerCentimeter), - (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.KilogramForcePerMeter) => new ForcePerLength(_value / 9.80665002864, ForcePerLengthUnit.KilogramForcePerMeter), - (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.KilogramForcePerMillimeter) => new ForcePerLength(_value / 9.80665002864e3, ForcePerLengthUnit.KilogramForcePerMillimeter), + (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.KilogramForcePerCentimeter) => new ForcePerLength(_value / 980.665, ForcePerLengthUnit.KilogramForcePerCentimeter), + (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.KilogramForcePerMeter) => new ForcePerLength(_value / 9.80665, ForcePerLengthUnit.KilogramForcePerMeter), + (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.KilogramForcePerMillimeter) => new ForcePerLength(_value / 9.80665e3, ForcePerLengthUnit.KilogramForcePerMillimeter), (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.KilonewtonPerCentimeter) => new ForcePerLength((_value / 1e2) / 1e3d, ForcePerLengthUnit.KilonewtonPerCentimeter), (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.KilonewtonPerMeter) => new ForcePerLength((_value) / 1e3d, ForcePerLengthUnit.KilonewtonPerMeter), (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.KilonewtonPerMillimeter) => new ForcePerLength((_value / 1e3) / 1e3d, ForcePerLengthUnit.KilonewtonPerMillimeter), - (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.KilopoundForcePerFoot) => new ForcePerLength(_value / 14593.90292, ForcePerLengthUnit.KilopoundForcePerFoot), - (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.KilopoundForcePerInch) => new ForcePerLength(_value / 1.75126835e5, ForcePerLengthUnit.KilopoundForcePerInch), + (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.KilopoundForcePerFoot) => new ForcePerLength(_value * 0.3048e-3 / 4.4482216152605, ForcePerLengthUnit.KilopoundForcePerFoot), + (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.KilopoundForcePerInch) => new ForcePerLength(_value * 2.54e-5 / 4.4482216152605, ForcePerLengthUnit.KilopoundForcePerInch), (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.MeganewtonPerCentimeter) => new ForcePerLength((_value / 1e2) / 1e6d, ForcePerLengthUnit.MeganewtonPerCentimeter), (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.MeganewtonPerMeter) => new ForcePerLength((_value) / 1e6d, ForcePerLengthUnit.MeganewtonPerMeter), (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.MeganewtonPerMillimeter) => new ForcePerLength((_value / 1e3) / 1e6d, ForcePerLengthUnit.MeganewtonPerMillimeter), @@ -1424,12 +1424,12 @@ private bool TryToUnit(ForcePerLengthUnit unit, [NotNullWhen(true)] out ForcePer (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.NanonewtonPerMillimeter) => new ForcePerLength((_value / 1e3) / 1e-9d, ForcePerLengthUnit.NanonewtonPerMillimeter), (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.NewtonPerCentimeter) => new ForcePerLength(_value / 1e2, ForcePerLengthUnit.NewtonPerCentimeter), (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.NewtonPerMillimeter) => new ForcePerLength(_value / 1e3, ForcePerLengthUnit.NewtonPerMillimeter), - (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.PoundForcePerFoot) => new ForcePerLength(_value / 14.59390292, ForcePerLengthUnit.PoundForcePerFoot), - (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.PoundForcePerInch) => new ForcePerLength(_value / 1.75126835e2, ForcePerLengthUnit.PoundForcePerInch), - (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.PoundForcePerYard) => new ForcePerLength(_value / 4.864634307, ForcePerLengthUnit.PoundForcePerYard), - (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.TonneForcePerCentimeter) => new ForcePerLength(_value / 9.80665002864e5, ForcePerLengthUnit.TonneForcePerCentimeter), - (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.TonneForcePerMeter) => new ForcePerLength(_value / 9.80665002864e3, ForcePerLengthUnit.TonneForcePerMeter), - (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.TonneForcePerMillimeter) => new ForcePerLength(_value / 9.80665002864e6, ForcePerLengthUnit.TonneForcePerMillimeter), + (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.PoundForcePerFoot) => new ForcePerLength(_value * 0.3048 / 4.4482216152605, ForcePerLengthUnit.PoundForcePerFoot), + (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.PoundForcePerInch) => new ForcePerLength(_value * 2.54e-2 / 4.4482216152605, ForcePerLengthUnit.PoundForcePerInch), + (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.PoundForcePerYard) => new ForcePerLength(_value * 0.9144 / 4.4482216152605, ForcePerLengthUnit.PoundForcePerYard), + (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.TonneForcePerCentimeter) => new ForcePerLength(_value / 9.80665e5, ForcePerLengthUnit.TonneForcePerCentimeter), + (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.TonneForcePerMeter) => new ForcePerLength(_value / 9.80665e3, ForcePerLengthUnit.TonneForcePerMeter), + (ForcePerLengthUnit.NewtonPerMeter, ForcePerLengthUnit.TonneForcePerMillimeter) => new ForcePerLength(_value / 9.80665e6, ForcePerLengthUnit.TonneForcePerMillimeter), _ => null }; diff --git a/UnitsNet/GeneratedCode/Quantities/Frequency.g.cs b/UnitsNet/GeneratedCode/Quantities/Frequency.g.cs index f1aa875fb3..f74c150feb 100644 --- a/UnitsNet/GeneratedCode/Quantities/Frequency.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Frequency.g.cs @@ -908,7 +908,7 @@ private bool TryToUnit(FrequencyUnit unit, [NotNullWhen(true)] out Frequency? co (FrequencyUnit.Microhertz, FrequencyUnit.Hertz) => new Frequency((_value) * 1e-6d, FrequencyUnit.Hertz), (FrequencyUnit.Millihertz, FrequencyUnit.Hertz) => new Frequency((_value) * 1e-3d, FrequencyUnit.Hertz), (FrequencyUnit.PerSecond, FrequencyUnit.Hertz) => new Frequency(_value, FrequencyUnit.Hertz), - (FrequencyUnit.RadianPerSecond, FrequencyUnit.Hertz) => new Frequency(_value / 6.2831853072, FrequencyUnit.Hertz), + (FrequencyUnit.RadianPerSecond, FrequencyUnit.Hertz) => new Frequency(_value / (2 * Math.PI), FrequencyUnit.Hertz), (FrequencyUnit.Terahertz, FrequencyUnit.Hertz) => new Frequency((_value) * 1e12d, FrequencyUnit.Hertz), // BaseUnit -> FrequencyUnit @@ -922,7 +922,7 @@ private bool TryToUnit(FrequencyUnit unit, [NotNullWhen(true)] out Frequency? co (FrequencyUnit.Hertz, FrequencyUnit.Microhertz) => new Frequency((_value) / 1e-6d, FrequencyUnit.Microhertz), (FrequencyUnit.Hertz, FrequencyUnit.Millihertz) => new Frequency((_value) / 1e-3d, FrequencyUnit.Millihertz), (FrequencyUnit.Hertz, FrequencyUnit.PerSecond) => new Frequency(_value, FrequencyUnit.PerSecond), - (FrequencyUnit.Hertz, FrequencyUnit.RadianPerSecond) => new Frequency(_value * 6.2831853072, FrequencyUnit.RadianPerSecond), + (FrequencyUnit.Hertz, FrequencyUnit.RadianPerSecond) => new Frequency(_value * (2 * Math.PI), FrequencyUnit.RadianPerSecond), (FrequencyUnit.Hertz, FrequencyUnit.Terahertz) => new Frequency((_value) / 1e12d, FrequencyUnit.Terahertz), _ => null diff --git a/UnitsNet/GeneratedCode/Quantities/Irradiation.g.cs b/UnitsNet/GeneratedCode/Quantities/Irradiation.g.cs index d144ddba97..09e764f34d 100644 --- a/UnitsNet/GeneratedCode/Quantities/Irradiation.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Irradiation.g.cs @@ -824,20 +824,20 @@ private bool TryToUnit(IrradiationUnit unit, [NotNullWhen(true)] out Irradiation Irradiation? convertedOrNull = (Unit, unit) switch { // IrradiationUnit -> BaseUnit - (IrradiationUnit.BtuPerSquareFoot, IrradiationUnit.JoulePerSquareMeter) => new Irradiation(_value * (52752792631d / 4645152d), IrradiationUnit.JoulePerSquareMeter), + (IrradiationUnit.BtuPerSquareFoot, IrradiationUnit.JoulePerSquareMeter) => new Irradiation(_value * 1055.05585262 / 9.290304e-2, IrradiationUnit.JoulePerSquareMeter), (IrradiationUnit.JoulePerSquareCentimeter, IrradiationUnit.JoulePerSquareMeter) => new Irradiation(_value * 1e4, IrradiationUnit.JoulePerSquareMeter), (IrradiationUnit.JoulePerSquareMillimeter, IrradiationUnit.JoulePerSquareMeter) => new Irradiation(_value * 1e6, IrradiationUnit.JoulePerSquareMeter), - (IrradiationUnit.KilobtuPerSquareFoot, IrradiationUnit.JoulePerSquareMeter) => new Irradiation((_value * (52752792631d / 4645152d)) * 1e3d, IrradiationUnit.JoulePerSquareMeter), + (IrradiationUnit.KilobtuPerSquareFoot, IrradiationUnit.JoulePerSquareMeter) => new Irradiation((_value * 1055.05585262 / 9.290304e-2) * 1e3d, IrradiationUnit.JoulePerSquareMeter), (IrradiationUnit.KilojoulePerSquareMeter, IrradiationUnit.JoulePerSquareMeter) => new Irradiation((_value) * 1e3d, IrradiationUnit.JoulePerSquareMeter), (IrradiationUnit.KilowattHourPerSquareMeter, IrradiationUnit.JoulePerSquareMeter) => new Irradiation((_value * 3600d) * 1e3d, IrradiationUnit.JoulePerSquareMeter), (IrradiationUnit.MillijoulePerSquareCentimeter, IrradiationUnit.JoulePerSquareMeter) => new Irradiation((_value * 1e4) * 1e-3d, IrradiationUnit.JoulePerSquareMeter), (IrradiationUnit.WattHourPerSquareMeter, IrradiationUnit.JoulePerSquareMeter) => new Irradiation(_value * 3600d, IrradiationUnit.JoulePerSquareMeter), // BaseUnit -> IrradiationUnit - (IrradiationUnit.JoulePerSquareMeter, IrradiationUnit.BtuPerSquareFoot) => new Irradiation(_value / (52752792631d / 4645152d), IrradiationUnit.BtuPerSquareFoot), + (IrradiationUnit.JoulePerSquareMeter, IrradiationUnit.BtuPerSquareFoot) => new Irradiation(_value * 9.290304e-2 / 1055.05585262, IrradiationUnit.BtuPerSquareFoot), (IrradiationUnit.JoulePerSquareMeter, IrradiationUnit.JoulePerSquareCentimeter) => new Irradiation(_value / 1e4, IrradiationUnit.JoulePerSquareCentimeter), (IrradiationUnit.JoulePerSquareMeter, IrradiationUnit.JoulePerSquareMillimeter) => new Irradiation(_value / 1e6, IrradiationUnit.JoulePerSquareMillimeter), - (IrradiationUnit.JoulePerSquareMeter, IrradiationUnit.KilobtuPerSquareFoot) => new Irradiation((_value / (52752792631d / 4645152d)) / 1e3d, IrradiationUnit.KilobtuPerSquareFoot), + (IrradiationUnit.JoulePerSquareMeter, IrradiationUnit.KilobtuPerSquareFoot) => new Irradiation((_value * 9.290304e-2 / 1055.05585262) / 1e3d, IrradiationUnit.KilobtuPerSquareFoot), (IrradiationUnit.JoulePerSquareMeter, IrradiationUnit.KilojoulePerSquareMeter) => new Irradiation((_value) / 1e3d, IrradiationUnit.KilojoulePerSquareMeter), (IrradiationUnit.JoulePerSquareMeter, IrradiationUnit.KilowattHourPerSquareMeter) => new Irradiation((_value / 3600d) / 1e3d, IrradiationUnit.KilowattHourPerSquareMeter), (IrradiationUnit.JoulePerSquareMeter, IrradiationUnit.MillijoulePerSquareCentimeter) => new Irradiation((_value / 1e4) / 1e-3d, IrradiationUnit.MillijoulePerSquareCentimeter), diff --git a/UnitsNet/GeneratedCode/Quantities/KinematicViscosity.g.cs b/UnitsNet/GeneratedCode/Quantities/KinematicViscosity.g.cs index 098afe51b6..a1b8edc5a9 100644 --- a/UnitsNet/GeneratedCode/Quantities/KinematicViscosity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/KinematicViscosity.g.cs @@ -864,7 +864,7 @@ private bool TryToUnit(KinematicViscosityUnit unit, [NotNullWhen(true)] out Kine (KinematicViscosityUnit.Microstokes, KinematicViscosityUnit.SquareMeterPerSecond) => new KinematicViscosity((_value / 1e4) * 1e-6d, KinematicViscosityUnit.SquareMeterPerSecond), (KinematicViscosityUnit.Millistokes, KinematicViscosityUnit.SquareMeterPerSecond) => new KinematicViscosity((_value / 1e4) * 1e-3d, KinematicViscosityUnit.SquareMeterPerSecond), (KinematicViscosityUnit.Nanostokes, KinematicViscosityUnit.SquareMeterPerSecond) => new KinematicViscosity((_value / 1e4) * 1e-9d, KinematicViscosityUnit.SquareMeterPerSecond), - (KinematicViscosityUnit.SquareFootPerSecond, KinematicViscosityUnit.SquareMeterPerSecond) => new KinematicViscosity(_value / 10.7639, KinematicViscosityUnit.SquareMeterPerSecond), + (KinematicViscosityUnit.SquareFootPerSecond, KinematicViscosityUnit.SquareMeterPerSecond) => new KinematicViscosity(_value * 9.290304e-2, KinematicViscosityUnit.SquareMeterPerSecond), (KinematicViscosityUnit.Stokes, KinematicViscosityUnit.SquareMeterPerSecond) => new KinematicViscosity(_value / 1e4, KinematicViscosityUnit.SquareMeterPerSecond), // BaseUnit -> KinematicViscosityUnit @@ -874,7 +874,7 @@ private bool TryToUnit(KinematicViscosityUnit unit, [NotNullWhen(true)] out Kine (KinematicViscosityUnit.SquareMeterPerSecond, KinematicViscosityUnit.Microstokes) => new KinematicViscosity((_value * 1e4) / 1e-6d, KinematicViscosityUnit.Microstokes), (KinematicViscosityUnit.SquareMeterPerSecond, KinematicViscosityUnit.Millistokes) => new KinematicViscosity((_value * 1e4) / 1e-3d, KinematicViscosityUnit.Millistokes), (KinematicViscosityUnit.SquareMeterPerSecond, KinematicViscosityUnit.Nanostokes) => new KinematicViscosity((_value * 1e4) / 1e-9d, KinematicViscosityUnit.Nanostokes), - (KinematicViscosityUnit.SquareMeterPerSecond, KinematicViscosityUnit.SquareFootPerSecond) => new KinematicViscosity(_value * 10.7639, KinematicViscosityUnit.SquareFootPerSecond), + (KinematicViscosityUnit.SquareMeterPerSecond, KinematicViscosityUnit.SquareFootPerSecond) => new KinematicViscosity(_value / 9.290304e-2, KinematicViscosityUnit.SquareFootPerSecond), (KinematicViscosityUnit.SquareMeterPerSecond, KinematicViscosityUnit.Stokes) => new KinematicViscosity(_value * 1e4, KinematicViscosityUnit.Stokes), _ => null diff --git a/UnitsNet/GeneratedCode/Quantities/Length.g.cs b/UnitsNet/GeneratedCode/Quantities/Length.g.cs index 75598e01bd..cf87fd8bfb 100644 --- a/UnitsNet/GeneratedCode/Quantities/Length.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Length.g.cs @@ -1495,8 +1495,8 @@ private bool TryToUnit(LengthUnit unit, [NotNullWhen(true)] out Length? converte (LengthUnit.DataMile, LengthUnit.Meter) => new Length(_value * 1828.8, LengthUnit.Meter), (LengthUnit.Decameter, LengthUnit.Meter) => new Length((_value) * 1e1d, LengthUnit.Meter), (LengthUnit.Decimeter, LengthUnit.Meter) => new Length((_value) * 1e-1d, LengthUnit.Meter), - (LengthUnit.DtpPica, LengthUnit.Meter) => new Length(_value / 236.220472441, LengthUnit.Meter), - (LengthUnit.DtpPoint, LengthUnit.Meter) => new Length((_value / 72) * 2.54e-2, LengthUnit.Meter), + (LengthUnit.DtpPica, LengthUnit.Meter) => new Length(_value * 2.54e-2 / 6, LengthUnit.Meter), + (LengthUnit.DtpPoint, LengthUnit.Meter) => new Length(_value * 2.54e-2 / 72, LengthUnit.Meter), (LengthUnit.Fathom, LengthUnit.Meter) => new Length(_value * 1.8288, LengthUnit.Meter), (LengthUnit.Femtometer, LengthUnit.Meter) => new Length((_value) * 1e-15d, LengthUnit.Meter), (LengthUnit.Foot, LengthUnit.Meter) => new Length(_value * 0.3048, LengthUnit.Meter), @@ -1522,11 +1522,11 @@ private bool TryToUnit(LengthUnit unit, [NotNullWhen(true)] out Length? converte (LengthUnit.NauticalMile, LengthUnit.Meter) => new Length(_value * 1852, LengthUnit.Meter), (LengthUnit.Parsec, LengthUnit.Meter) => new Length(_value * 3.08567758128e16, LengthUnit.Meter), (LengthUnit.Picometer, LengthUnit.Meter) => new Length((_value) * 1e-12d, LengthUnit.Meter), - (LengthUnit.PrinterPica, LengthUnit.Meter) => new Length(_value / 237.106301584, LengthUnit.Meter), - (LengthUnit.PrinterPoint, LengthUnit.Meter) => new Length((_value / 72.27) * 2.54e-2, LengthUnit.Meter), + (LengthUnit.PrinterPica, LengthUnit.Meter) => new Length(_value * 2.54e-2 * 400 / 2409, LengthUnit.Meter), + (LengthUnit.PrinterPoint, LengthUnit.Meter) => new Length(_value * 2.54e-2 / 72.27 , LengthUnit.Meter), (LengthUnit.Shackle, LengthUnit.Meter) => new Length(_value * 27.432, LengthUnit.Meter), (LengthUnit.SolarRadius, LengthUnit.Meter) => new Length(_value * 6.95700e8, LengthUnit.Meter), - (LengthUnit.Twip, LengthUnit.Meter) => new Length(_value / 56692.913385826, LengthUnit.Meter), + (LengthUnit.Twip, LengthUnit.Meter) => new Length(_value * 2.54e-2 / 1440, LengthUnit.Meter), (LengthUnit.UsSurveyFoot, LengthUnit.Meter) => new Length(_value * 1200 / 3937, LengthUnit.Meter), (LengthUnit.Yard, LengthUnit.Meter) => new Length(_value * 0.9144, LengthUnit.Meter), @@ -1538,8 +1538,8 @@ private bool TryToUnit(LengthUnit unit, [NotNullWhen(true)] out Length? converte (LengthUnit.Meter, LengthUnit.DataMile) => new Length(_value / 1828.8, LengthUnit.DataMile), (LengthUnit.Meter, LengthUnit.Decameter) => new Length((_value) / 1e1d, LengthUnit.Decameter), (LengthUnit.Meter, LengthUnit.Decimeter) => new Length((_value) / 1e-1d, LengthUnit.Decimeter), - (LengthUnit.Meter, LengthUnit.DtpPica) => new Length(_value * 236.220472441, LengthUnit.DtpPica), - (LengthUnit.Meter, LengthUnit.DtpPoint) => new Length((_value / 2.54e-2) * 72, LengthUnit.DtpPoint), + (LengthUnit.Meter, LengthUnit.DtpPica) => new Length(_value * 6 / 2.54e-2, LengthUnit.DtpPica), + (LengthUnit.Meter, LengthUnit.DtpPoint) => new Length(_value * 72 / 2.54e-2, LengthUnit.DtpPoint), (LengthUnit.Meter, LengthUnit.Fathom) => new Length(_value / 1.8288, LengthUnit.Fathom), (LengthUnit.Meter, LengthUnit.Femtometer) => new Length((_value) / 1e-15d, LengthUnit.Femtometer), (LengthUnit.Meter, LengthUnit.Foot) => new Length(_value / 0.3048, LengthUnit.Foot), @@ -1565,11 +1565,11 @@ private bool TryToUnit(LengthUnit unit, [NotNullWhen(true)] out Length? converte (LengthUnit.Meter, LengthUnit.NauticalMile) => new Length(_value / 1852, LengthUnit.NauticalMile), (LengthUnit.Meter, LengthUnit.Parsec) => new Length(_value / 3.08567758128e16, LengthUnit.Parsec), (LengthUnit.Meter, LengthUnit.Picometer) => new Length((_value) / 1e-12d, LengthUnit.Picometer), - (LengthUnit.Meter, LengthUnit.PrinterPica) => new Length(_value * 237.106301584, LengthUnit.PrinterPica), - (LengthUnit.Meter, LengthUnit.PrinterPoint) => new Length((_value / 2.54e-2) * 72.27, LengthUnit.PrinterPoint), + (LengthUnit.Meter, LengthUnit.PrinterPica) => new Length(_value / (2.54e-2 * 400 / 2409), LengthUnit.PrinterPica), + (LengthUnit.Meter, LengthUnit.PrinterPoint) => new Length(_value * 72.27 / 2.54e-2, LengthUnit.PrinterPoint), (LengthUnit.Meter, LengthUnit.Shackle) => new Length(_value / 27.432, LengthUnit.Shackle), (LengthUnit.Meter, LengthUnit.SolarRadius) => new Length(_value / 6.95700e8, LengthUnit.SolarRadius), - (LengthUnit.Meter, LengthUnit.Twip) => new Length(_value * 56692.913385826, LengthUnit.Twip), + (LengthUnit.Meter, LengthUnit.Twip) => new Length(_value * 1440 / 2.54e-2, LengthUnit.Twip), (LengthUnit.Meter, LengthUnit.UsSurveyFoot) => new Length(_value * 3937 / 1200, LengthUnit.UsSurveyFoot), (LengthUnit.Meter, LengthUnit.Yard) => new Length(_value / 0.9144, LengthUnit.Yard), diff --git a/UnitsNet/GeneratedCode/Quantities/LinearDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/LinearDensity.g.cs index ebdb4fb7ac..14badeb281 100644 --- a/UnitsNet/GeneratedCode/Quantities/LinearDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/LinearDensity.g.cs @@ -1010,8 +1010,8 @@ private bool TryToUnit(LinearDensityUnit unit, [NotNullWhen(true)] out LinearDen (LinearDensityUnit.MilligramPerFoot, LinearDensityUnit.KilogramPerMeter) => new LinearDensity((_value * ( 1e-3 / 0.3048 )) * 1e-3d, LinearDensityUnit.KilogramPerMeter), (LinearDensityUnit.MilligramPerMeter, LinearDensityUnit.KilogramPerMeter) => new LinearDensity((_value * 1e-3) * 1e-3d, LinearDensityUnit.KilogramPerMeter), (LinearDensityUnit.MilligramPerMillimeter, LinearDensityUnit.KilogramPerMeter) => new LinearDensity((_value) * 1e-3d, LinearDensityUnit.KilogramPerMeter), - (LinearDensityUnit.PoundPerFoot, LinearDensityUnit.KilogramPerMeter) => new LinearDensity(_value * 1.48816394, LinearDensityUnit.KilogramPerMeter), - (LinearDensityUnit.PoundPerInch, LinearDensityUnit.KilogramPerMeter) => new LinearDensity(_value / 5.5997415e-2, LinearDensityUnit.KilogramPerMeter), + (LinearDensityUnit.PoundPerFoot, LinearDensityUnit.KilogramPerMeter) => new LinearDensity(_value * 0.45359237 / 0.3048, LinearDensityUnit.KilogramPerMeter), + (LinearDensityUnit.PoundPerInch, LinearDensityUnit.KilogramPerMeter) => new LinearDensity(_value * 0.45359237 / 2.54e-2, LinearDensityUnit.KilogramPerMeter), // BaseUnit -> LinearDensityUnit (LinearDensityUnit.KilogramPerMeter, LinearDensityUnit.GramPerCentimeter) => new LinearDensity(_value / 1e-1, LinearDensityUnit.GramPerCentimeter), @@ -1029,8 +1029,8 @@ private bool TryToUnit(LinearDensityUnit unit, [NotNullWhen(true)] out LinearDen (LinearDensityUnit.KilogramPerMeter, LinearDensityUnit.MilligramPerFoot) => new LinearDensity((_value / ( 1e-3 / 0.3048 )) / 1e-3d, LinearDensityUnit.MilligramPerFoot), (LinearDensityUnit.KilogramPerMeter, LinearDensityUnit.MilligramPerMeter) => new LinearDensity((_value / 1e-3) / 1e-3d, LinearDensityUnit.MilligramPerMeter), (LinearDensityUnit.KilogramPerMeter, LinearDensityUnit.MilligramPerMillimeter) => new LinearDensity((_value) / 1e-3d, LinearDensityUnit.MilligramPerMillimeter), - (LinearDensityUnit.KilogramPerMeter, LinearDensityUnit.PoundPerFoot) => new LinearDensity(_value / 1.48816394, LinearDensityUnit.PoundPerFoot), - (LinearDensityUnit.KilogramPerMeter, LinearDensityUnit.PoundPerInch) => new LinearDensity(_value * 5.5997415e-2, LinearDensityUnit.PoundPerInch), + (LinearDensityUnit.KilogramPerMeter, LinearDensityUnit.PoundPerFoot) => new LinearDensity(_value * 0.3048 / 0.45359237, LinearDensityUnit.PoundPerFoot), + (LinearDensityUnit.KilogramPerMeter, LinearDensityUnit.PoundPerInch) => new LinearDensity(_value * 2.54e-2 / 0.45359237, LinearDensityUnit.PoundPerInch), _ => null }; diff --git a/UnitsNet/GeneratedCode/Quantities/LinearPowerDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/LinearPowerDensity.g.cs index 66886e8ae4..67279ce157 100644 --- a/UnitsNet/GeneratedCode/Quantities/LinearPowerDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/LinearPowerDensity.g.cs @@ -1081,54 +1081,54 @@ private bool TryToUnit(LinearPowerDensityUnit unit, [NotNullWhen(true)] out Line { // LinearPowerDensityUnit -> BaseUnit (LinearPowerDensityUnit.GigawattPerCentimeter, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity((_value * 1e2) * 1e9d, LinearPowerDensityUnit.WattPerMeter), - (LinearPowerDensityUnit.GigawattPerFoot, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity((_value * 3.280839895) * 1e9d, LinearPowerDensityUnit.WattPerMeter), - (LinearPowerDensityUnit.GigawattPerInch, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity((_value * 39.37007874) * 1e9d, LinearPowerDensityUnit.WattPerMeter), + (LinearPowerDensityUnit.GigawattPerFoot, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity((_value / 0.3048) * 1e9d, LinearPowerDensityUnit.WattPerMeter), + (LinearPowerDensityUnit.GigawattPerInch, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity((_value / 2.54e-2) * 1e9d, LinearPowerDensityUnit.WattPerMeter), (LinearPowerDensityUnit.GigawattPerMeter, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity((_value) * 1e9d, LinearPowerDensityUnit.WattPerMeter), (LinearPowerDensityUnit.GigawattPerMillimeter, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity((_value * 1e3) * 1e9d, LinearPowerDensityUnit.WattPerMeter), (LinearPowerDensityUnit.KilowattPerCentimeter, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity((_value * 1e2) * 1e3d, LinearPowerDensityUnit.WattPerMeter), - (LinearPowerDensityUnit.KilowattPerFoot, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity((_value * 3.280839895) * 1e3d, LinearPowerDensityUnit.WattPerMeter), - (LinearPowerDensityUnit.KilowattPerInch, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity((_value * 39.37007874) * 1e3d, LinearPowerDensityUnit.WattPerMeter), + (LinearPowerDensityUnit.KilowattPerFoot, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity((_value / 0.3048) * 1e3d, LinearPowerDensityUnit.WattPerMeter), + (LinearPowerDensityUnit.KilowattPerInch, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity((_value / 2.54e-2) * 1e3d, LinearPowerDensityUnit.WattPerMeter), (LinearPowerDensityUnit.KilowattPerMeter, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity((_value) * 1e3d, LinearPowerDensityUnit.WattPerMeter), (LinearPowerDensityUnit.KilowattPerMillimeter, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity((_value * 1e3) * 1e3d, LinearPowerDensityUnit.WattPerMeter), (LinearPowerDensityUnit.MegawattPerCentimeter, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity((_value * 1e2) * 1e6d, LinearPowerDensityUnit.WattPerMeter), - (LinearPowerDensityUnit.MegawattPerFoot, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity((_value * 3.280839895) * 1e6d, LinearPowerDensityUnit.WattPerMeter), - (LinearPowerDensityUnit.MegawattPerInch, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity((_value * 39.37007874) * 1e6d, LinearPowerDensityUnit.WattPerMeter), + (LinearPowerDensityUnit.MegawattPerFoot, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity((_value / 0.3048) * 1e6d, LinearPowerDensityUnit.WattPerMeter), + (LinearPowerDensityUnit.MegawattPerInch, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity((_value / 2.54e-2) * 1e6d, LinearPowerDensityUnit.WattPerMeter), (LinearPowerDensityUnit.MegawattPerMeter, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity((_value) * 1e6d, LinearPowerDensityUnit.WattPerMeter), (LinearPowerDensityUnit.MegawattPerMillimeter, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity((_value * 1e3) * 1e6d, LinearPowerDensityUnit.WattPerMeter), (LinearPowerDensityUnit.MilliwattPerCentimeter, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity((_value * 1e2) * 1e-3d, LinearPowerDensityUnit.WattPerMeter), - (LinearPowerDensityUnit.MilliwattPerFoot, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity((_value * 3.280839895) * 1e-3d, LinearPowerDensityUnit.WattPerMeter), - (LinearPowerDensityUnit.MilliwattPerInch, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity((_value * 39.37007874) * 1e-3d, LinearPowerDensityUnit.WattPerMeter), + (LinearPowerDensityUnit.MilliwattPerFoot, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity((_value / 0.3048) * 1e-3d, LinearPowerDensityUnit.WattPerMeter), + (LinearPowerDensityUnit.MilliwattPerInch, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity((_value / 2.54e-2) * 1e-3d, LinearPowerDensityUnit.WattPerMeter), (LinearPowerDensityUnit.MilliwattPerMeter, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity((_value) * 1e-3d, LinearPowerDensityUnit.WattPerMeter), (LinearPowerDensityUnit.MilliwattPerMillimeter, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity((_value * 1e3) * 1e-3d, LinearPowerDensityUnit.WattPerMeter), (LinearPowerDensityUnit.WattPerCentimeter, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity(_value * 1e2, LinearPowerDensityUnit.WattPerMeter), - (LinearPowerDensityUnit.WattPerFoot, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity(_value * 3.280839895, LinearPowerDensityUnit.WattPerMeter), - (LinearPowerDensityUnit.WattPerInch, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity(_value * 39.37007874, LinearPowerDensityUnit.WattPerMeter), + (LinearPowerDensityUnit.WattPerFoot, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity(_value / 0.3048, LinearPowerDensityUnit.WattPerMeter), + (LinearPowerDensityUnit.WattPerInch, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity(_value / 2.54e-2, LinearPowerDensityUnit.WattPerMeter), (LinearPowerDensityUnit.WattPerMillimeter, LinearPowerDensityUnit.WattPerMeter) => new LinearPowerDensity(_value * 1e3, LinearPowerDensityUnit.WattPerMeter), // BaseUnit -> LinearPowerDensityUnit (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.GigawattPerCentimeter) => new LinearPowerDensity((_value / 1e2) / 1e9d, LinearPowerDensityUnit.GigawattPerCentimeter), - (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.GigawattPerFoot) => new LinearPowerDensity((_value / 3.280839895) / 1e9d, LinearPowerDensityUnit.GigawattPerFoot), - (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.GigawattPerInch) => new LinearPowerDensity((_value / 39.37007874) / 1e9d, LinearPowerDensityUnit.GigawattPerInch), + (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.GigawattPerFoot) => new LinearPowerDensity((_value * 0.3048) / 1e9d, LinearPowerDensityUnit.GigawattPerFoot), + (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.GigawattPerInch) => new LinearPowerDensity((_value * 2.54e-2) / 1e9d, LinearPowerDensityUnit.GigawattPerInch), (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.GigawattPerMeter) => new LinearPowerDensity((_value) / 1e9d, LinearPowerDensityUnit.GigawattPerMeter), (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.GigawattPerMillimeter) => new LinearPowerDensity((_value / 1e3) / 1e9d, LinearPowerDensityUnit.GigawattPerMillimeter), (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.KilowattPerCentimeter) => new LinearPowerDensity((_value / 1e2) / 1e3d, LinearPowerDensityUnit.KilowattPerCentimeter), - (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.KilowattPerFoot) => new LinearPowerDensity((_value / 3.280839895) / 1e3d, LinearPowerDensityUnit.KilowattPerFoot), - (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.KilowattPerInch) => new LinearPowerDensity((_value / 39.37007874) / 1e3d, LinearPowerDensityUnit.KilowattPerInch), + (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.KilowattPerFoot) => new LinearPowerDensity((_value * 0.3048) / 1e3d, LinearPowerDensityUnit.KilowattPerFoot), + (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.KilowattPerInch) => new LinearPowerDensity((_value * 2.54e-2) / 1e3d, LinearPowerDensityUnit.KilowattPerInch), (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.KilowattPerMeter) => new LinearPowerDensity((_value) / 1e3d, LinearPowerDensityUnit.KilowattPerMeter), (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.KilowattPerMillimeter) => new LinearPowerDensity((_value / 1e3) / 1e3d, LinearPowerDensityUnit.KilowattPerMillimeter), (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.MegawattPerCentimeter) => new LinearPowerDensity((_value / 1e2) / 1e6d, LinearPowerDensityUnit.MegawattPerCentimeter), - (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.MegawattPerFoot) => new LinearPowerDensity((_value / 3.280839895) / 1e6d, LinearPowerDensityUnit.MegawattPerFoot), - (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.MegawattPerInch) => new LinearPowerDensity((_value / 39.37007874) / 1e6d, LinearPowerDensityUnit.MegawattPerInch), + (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.MegawattPerFoot) => new LinearPowerDensity((_value * 0.3048) / 1e6d, LinearPowerDensityUnit.MegawattPerFoot), + (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.MegawattPerInch) => new LinearPowerDensity((_value * 2.54e-2) / 1e6d, LinearPowerDensityUnit.MegawattPerInch), (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.MegawattPerMeter) => new LinearPowerDensity((_value) / 1e6d, LinearPowerDensityUnit.MegawattPerMeter), (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.MegawattPerMillimeter) => new LinearPowerDensity((_value / 1e3) / 1e6d, LinearPowerDensityUnit.MegawattPerMillimeter), (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.MilliwattPerCentimeter) => new LinearPowerDensity((_value / 1e2) / 1e-3d, LinearPowerDensityUnit.MilliwattPerCentimeter), - (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.MilliwattPerFoot) => new LinearPowerDensity((_value / 3.280839895) / 1e-3d, LinearPowerDensityUnit.MilliwattPerFoot), - (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.MilliwattPerInch) => new LinearPowerDensity((_value / 39.37007874) / 1e-3d, LinearPowerDensityUnit.MilliwattPerInch), + (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.MilliwattPerFoot) => new LinearPowerDensity((_value * 0.3048) / 1e-3d, LinearPowerDensityUnit.MilliwattPerFoot), + (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.MilliwattPerInch) => new LinearPowerDensity((_value * 2.54e-2) / 1e-3d, LinearPowerDensityUnit.MilliwattPerInch), (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.MilliwattPerMeter) => new LinearPowerDensity((_value) / 1e-3d, LinearPowerDensityUnit.MilliwattPerMeter), (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.MilliwattPerMillimeter) => new LinearPowerDensity((_value / 1e3) / 1e-3d, LinearPowerDensityUnit.MilliwattPerMillimeter), (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.WattPerCentimeter) => new LinearPowerDensity(_value / 1e2, LinearPowerDensityUnit.WattPerCentimeter), - (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.WattPerFoot) => new LinearPowerDensity(_value / 3.280839895, LinearPowerDensityUnit.WattPerFoot), - (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.WattPerInch) => new LinearPowerDensity(_value / 39.37007874, LinearPowerDensityUnit.WattPerInch), + (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.WattPerFoot) => new LinearPowerDensity(_value * 0.3048, LinearPowerDensityUnit.WattPerFoot), + (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.WattPerInch) => new LinearPowerDensity(_value * 2.54e-2, LinearPowerDensityUnit.WattPerInch), (LinearPowerDensityUnit.WattPerMeter, LinearPowerDensityUnit.WattPerMillimeter) => new LinearPowerDensity(_value / 1e3, LinearPowerDensityUnit.WattPerMillimeter), _ => null diff --git a/UnitsNet/GeneratedCode/Quantities/Luminance.g.cs b/UnitsNet/GeneratedCode/Quantities/Luminance.g.cs index 48369e4e06..f4337dcb1f 100644 --- a/UnitsNet/GeneratedCode/Quantities/Luminance.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Luminance.g.cs @@ -853,8 +853,8 @@ private bool TryToUnit(LuminanceUnit unit, [NotNullWhen(true)] out Luminance? co Luminance? convertedOrNull = (Unit, unit) switch { // LuminanceUnit -> BaseUnit - (LuminanceUnit.CandelaPerSquareFoot, LuminanceUnit.CandelaPerSquareMeter) => new Luminance(_value* 1.07639e1, LuminanceUnit.CandelaPerSquareMeter), - (LuminanceUnit.CandelaPerSquareInch, LuminanceUnit.CandelaPerSquareMeter) => new Luminance(_value* 1.5500031e3, LuminanceUnit.CandelaPerSquareMeter), + (LuminanceUnit.CandelaPerSquareFoot, LuminanceUnit.CandelaPerSquareMeter) => new Luminance(_value / 9.290304e-2, LuminanceUnit.CandelaPerSquareMeter), + (LuminanceUnit.CandelaPerSquareInch, LuminanceUnit.CandelaPerSquareMeter) => new Luminance(_value / 0.00064516, LuminanceUnit.CandelaPerSquareMeter), (LuminanceUnit.CenticandelaPerSquareMeter, LuminanceUnit.CandelaPerSquareMeter) => new Luminance((_value) * 1e-2d, LuminanceUnit.CandelaPerSquareMeter), (LuminanceUnit.DecicandelaPerSquareMeter, LuminanceUnit.CandelaPerSquareMeter) => new Luminance((_value) * 1e-1d, LuminanceUnit.CandelaPerSquareMeter), (LuminanceUnit.KilocandelaPerSquareMeter, LuminanceUnit.CandelaPerSquareMeter) => new Luminance((_value) * 1e3d, LuminanceUnit.CandelaPerSquareMeter), @@ -864,8 +864,8 @@ private bool TryToUnit(LuminanceUnit unit, [NotNullWhen(true)] out Luminance? co (LuminanceUnit.Nit, LuminanceUnit.CandelaPerSquareMeter) => new Luminance(_value, LuminanceUnit.CandelaPerSquareMeter), // BaseUnit -> LuminanceUnit - (LuminanceUnit.CandelaPerSquareMeter, LuminanceUnit.CandelaPerSquareFoot) => new Luminance(_value/ 1.07639e1, LuminanceUnit.CandelaPerSquareFoot), - (LuminanceUnit.CandelaPerSquareMeter, LuminanceUnit.CandelaPerSquareInch) => new Luminance(_value/ 1.5500031e3, LuminanceUnit.CandelaPerSquareInch), + (LuminanceUnit.CandelaPerSquareMeter, LuminanceUnit.CandelaPerSquareFoot) => new Luminance(_value * 9.290304e-2, LuminanceUnit.CandelaPerSquareFoot), + (LuminanceUnit.CandelaPerSquareMeter, LuminanceUnit.CandelaPerSquareInch) => new Luminance(_value * 0.00064516, LuminanceUnit.CandelaPerSquareInch), (LuminanceUnit.CandelaPerSquareMeter, LuminanceUnit.CenticandelaPerSquareMeter) => new Luminance((_value) / 1e-2d, LuminanceUnit.CenticandelaPerSquareMeter), (LuminanceUnit.CandelaPerSquareMeter, LuminanceUnit.DecicandelaPerSquareMeter) => new Luminance((_value) / 1e-1d, LuminanceUnit.DecicandelaPerSquareMeter), (LuminanceUnit.CandelaPerSquareMeter, LuminanceUnit.KilocandelaPerSquareMeter) => new Luminance((_value) / 1e3d, LuminanceUnit.KilocandelaPerSquareMeter), diff --git a/UnitsNet/GeneratedCode/Quantities/Mass.g.cs b/UnitsNet/GeneratedCode/Quantities/Mass.g.cs index 6e0d9894b8..f53a806f6b 100644 --- a/UnitsNet/GeneratedCode/Quantities/Mass.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Mass.g.cs @@ -1232,13 +1232,13 @@ private bool TryToUnit(MassUnit unit, [NotNullWhen(true)] out Mass? converted) (MassUnit.Decigram, MassUnit.Kilogram) => new Mass((_value / 1e3) * 1e-1d, MassUnit.Kilogram), (MassUnit.EarthMass, MassUnit.Kilogram) => new Mass(_value * 5.9722E+24, MassUnit.Kilogram), (MassUnit.Femtogram, MassUnit.Kilogram) => new Mass((_value / 1e3) * 1e-15d, MassUnit.Kilogram), - (MassUnit.Grain, MassUnit.Kilogram) => new Mass(_value / 15432.358352941431, MassUnit.Kilogram), + (MassUnit.Grain, MassUnit.Kilogram) => new Mass(_value * 64.79891e-6, MassUnit.Kilogram), (MassUnit.Gram, MassUnit.Kilogram) => new Mass(_value / 1e3, MassUnit.Kilogram), (MassUnit.Hectogram, MassUnit.Kilogram) => new Mass((_value / 1e3) * 1e2d, MassUnit.Kilogram), (MassUnit.Kilopound, MassUnit.Kilogram) => new Mass((_value * 0.45359237) * 1e3d, MassUnit.Kilogram), (MassUnit.Kilotonne, MassUnit.Kilogram) => new Mass((_value * 1e3) * 1e3d, MassUnit.Kilogram), - (MassUnit.LongHundredweight, MassUnit.Kilogram) => new Mass(_value / 0.01968413055222121, MassUnit.Kilogram), - (MassUnit.LongTon, MassUnit.Kilogram) => new Mass(_value * 1.0160469088e3, MassUnit.Kilogram), + (MassUnit.LongHundredweight, MassUnit.Kilogram) => new Mass(_value * 50.80234544, MassUnit.Kilogram), + (MassUnit.LongTon, MassUnit.Kilogram) => new Mass(_value * 1016.0469088, MassUnit.Kilogram), (MassUnit.Megapound, MassUnit.Kilogram) => new Mass((_value * 0.45359237) * 1e6d, MassUnit.Kilogram), (MassUnit.Megatonne, MassUnit.Kilogram) => new Mass((_value * 1e3) * 1e6d, MassUnit.Kilogram), (MassUnit.Microgram, MassUnit.Kilogram) => new Mass((_value / 1e3) * 1e-6d, MassUnit.Kilogram), @@ -1247,11 +1247,11 @@ private bool TryToUnit(MassUnit unit, [NotNullWhen(true)] out Mass? converted) (MassUnit.Ounce, MassUnit.Kilogram) => new Mass(_value * 0.028349523125, MassUnit.Kilogram), (MassUnit.Picogram, MassUnit.Kilogram) => new Mass((_value / 1e3) * 1e-12d, MassUnit.Kilogram), (MassUnit.Pound, MassUnit.Kilogram) => new Mass(_value * 0.45359237, MassUnit.Kilogram), - (MassUnit.ShortHundredweight, MassUnit.Kilogram) => new Mass(_value / 0.022046226218487758, MassUnit.Kilogram), - (MassUnit.ShortTon, MassUnit.Kilogram) => new Mass(_value * 9.0718474e2, MassUnit.Kilogram), - (MassUnit.Slug, MassUnit.Kilogram) => new Mass(_value / 6.852176556196105e-2, MassUnit.Kilogram), + (MassUnit.ShortHundredweight, MassUnit.Kilogram) => new Mass(_value * 45.359237, MassUnit.Kilogram), + (MassUnit.ShortTon, MassUnit.Kilogram) => new Mass(_value * 907.18474, MassUnit.Kilogram), + (MassUnit.Slug, MassUnit.Kilogram) => new Mass(_value * 0.45359237 * 9.80665 / 0.3048, MassUnit.Kilogram), (MassUnit.SolarMass, MassUnit.Kilogram) => new Mass(_value * 1.98947e30, MassUnit.Kilogram), - (MassUnit.Stone, MassUnit.Kilogram) => new Mass(_value / 0.1574731728702698, MassUnit.Kilogram), + (MassUnit.Stone, MassUnit.Kilogram) => new Mass(_value * 6.35029318, MassUnit.Kilogram), (MassUnit.Tonne, MassUnit.Kilogram) => new Mass(_value * 1e3, MassUnit.Kilogram), // BaseUnit -> MassUnit @@ -1260,13 +1260,13 @@ private bool TryToUnit(MassUnit unit, [NotNullWhen(true)] out Mass? converted) (MassUnit.Kilogram, MassUnit.Decigram) => new Mass((_value * 1e3) / 1e-1d, MassUnit.Decigram), (MassUnit.Kilogram, MassUnit.EarthMass) => new Mass(_value / 5.9722E+24, MassUnit.EarthMass), (MassUnit.Kilogram, MassUnit.Femtogram) => new Mass((_value * 1e3) / 1e-15d, MassUnit.Femtogram), - (MassUnit.Kilogram, MassUnit.Grain) => new Mass(_value * 15432.358352941431, MassUnit.Grain), + (MassUnit.Kilogram, MassUnit.Grain) => new Mass(_value / 64.79891e-6, MassUnit.Grain), (MassUnit.Kilogram, MassUnit.Gram) => new Mass(_value * 1e3, MassUnit.Gram), (MassUnit.Kilogram, MassUnit.Hectogram) => new Mass((_value * 1e3) / 1e2d, MassUnit.Hectogram), (MassUnit.Kilogram, MassUnit.Kilopound) => new Mass((_value / 0.45359237) / 1e3d, MassUnit.Kilopound), (MassUnit.Kilogram, MassUnit.Kilotonne) => new Mass((_value / 1e3) / 1e3d, MassUnit.Kilotonne), - (MassUnit.Kilogram, MassUnit.LongHundredweight) => new Mass(_value * 0.01968413055222121, MassUnit.LongHundredweight), - (MassUnit.Kilogram, MassUnit.LongTon) => new Mass(_value / 1.0160469088e3, MassUnit.LongTon), + (MassUnit.Kilogram, MassUnit.LongHundredweight) => new Mass(_value / 50.80234544, MassUnit.LongHundredweight), + (MassUnit.Kilogram, MassUnit.LongTon) => new Mass(_value / 1016.0469088, MassUnit.LongTon), (MassUnit.Kilogram, MassUnit.Megapound) => new Mass((_value / 0.45359237) / 1e6d, MassUnit.Megapound), (MassUnit.Kilogram, MassUnit.Megatonne) => new Mass((_value / 1e3) / 1e6d, MassUnit.Megatonne), (MassUnit.Kilogram, MassUnit.Microgram) => new Mass((_value * 1e3) / 1e-6d, MassUnit.Microgram), @@ -1275,11 +1275,11 @@ private bool TryToUnit(MassUnit unit, [NotNullWhen(true)] out Mass? converted) (MassUnit.Kilogram, MassUnit.Ounce) => new Mass(_value / 0.028349523125, MassUnit.Ounce), (MassUnit.Kilogram, MassUnit.Picogram) => new Mass((_value * 1e3) / 1e-12d, MassUnit.Picogram), (MassUnit.Kilogram, MassUnit.Pound) => new Mass(_value / 0.45359237, MassUnit.Pound), - (MassUnit.Kilogram, MassUnit.ShortHundredweight) => new Mass(_value * 0.022046226218487758, MassUnit.ShortHundredweight), - (MassUnit.Kilogram, MassUnit.ShortTon) => new Mass(_value / 9.0718474e2, MassUnit.ShortTon), - (MassUnit.Kilogram, MassUnit.Slug) => new Mass(_value * 6.852176556196105e-2, MassUnit.Slug), + (MassUnit.Kilogram, MassUnit.ShortHundredweight) => new Mass(_value / 45.359237, MassUnit.ShortHundredweight), + (MassUnit.Kilogram, MassUnit.ShortTon) => new Mass(_value / 907.18474, MassUnit.ShortTon), + (MassUnit.Kilogram, MassUnit.Slug) => new Mass(_value * 0.3048 / (0.45359237 * 9.80665), MassUnit.Slug), (MassUnit.Kilogram, MassUnit.SolarMass) => new Mass(_value / 1.98947e30, MassUnit.SolarMass), - (MassUnit.Kilogram, MassUnit.Stone) => new Mass(_value * 0.1574731728702698, MassUnit.Stone), + (MassUnit.Kilogram, MassUnit.Stone) => new Mass(_value / 6.35029318, MassUnit.Stone), (MassUnit.Kilogram, MassUnit.Tonne) => new Mass(_value / 1e3, MassUnit.Tonne), _ => null diff --git a/UnitsNet/GeneratedCode/Quantities/MassConcentration.g.cs b/UnitsNet/GeneratedCode/Quantities/MassConcentration.g.cs index 9147eb7a00..97d2cee9f9 100644 --- a/UnitsNet/GeneratedCode/Quantities/MassConcentration.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MassConcentration.g.cs @@ -1523,8 +1523,8 @@ private bool TryToUnit(MassConcentrationUnit unit, [NotNullWhen(true)] out MassC (MassConcentrationUnit.KilogramPerCubicCentimeter, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration((_value / 1e-3) * 1e3d, MassConcentrationUnit.KilogramPerCubicMeter), (MassConcentrationUnit.KilogramPerCubicMillimeter, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration((_value / 1e-6) * 1e3d, MassConcentrationUnit.KilogramPerCubicMeter), (MassConcentrationUnit.KilogramPerLiter, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration((_value) * 1e3d, MassConcentrationUnit.KilogramPerCubicMeter), - (MassConcentrationUnit.KilopoundPerCubicFoot, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration((_value / 0.062427961) * 1e3d, MassConcentrationUnit.KilogramPerCubicMeter), - (MassConcentrationUnit.KilopoundPerCubicInch, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration((_value / 3.6127298147753e-5) * 1e3d, MassConcentrationUnit.KilogramPerCubicMeter), + (MassConcentrationUnit.KilopoundPerCubicFoot, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration((_value * 0.45359237 / 0.028316846592) * 1e3d, MassConcentrationUnit.KilogramPerCubicMeter), + (MassConcentrationUnit.KilopoundPerCubicInch, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration((_value * 0.45359237 / 1.6387064e-5) * 1e3d, MassConcentrationUnit.KilogramPerCubicMeter), (MassConcentrationUnit.MicrogramPerCubicMeter, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration((_value / 1e3) * 1e-6d, MassConcentrationUnit.KilogramPerCubicMeter), (MassConcentrationUnit.MicrogramPerDeciliter, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration((_value / 1e-1) * 1e-6d, MassConcentrationUnit.KilogramPerCubicMeter), (MassConcentrationUnit.MicrogramPerLiter, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration((_value) * 1e-6d, MassConcentrationUnit.KilogramPerCubicMeter), @@ -1539,17 +1539,17 @@ private bool TryToUnit(MassConcentrationUnit unit, [NotNullWhen(true)] out MassC (MassConcentrationUnit.NanogramPerLiter, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration((_value) * 1e-9d, MassConcentrationUnit.KilogramPerCubicMeter), (MassConcentrationUnit.NanogramPerMicroliter, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration((_value / 1e-6) * 1e-9d, MassConcentrationUnit.KilogramPerCubicMeter), (MassConcentrationUnit.NanogramPerMilliliter, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration((_value / 1e-3) * 1e-9d, MassConcentrationUnit.KilogramPerCubicMeter), - (MassConcentrationUnit.OuncePerImperialGallon, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration( _value / 0.1603586720609, MassConcentrationUnit.KilogramPerCubicMeter), - (MassConcentrationUnit.OuncePerUSGallon, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration( _value / 0.1335264711843, MassConcentrationUnit.KilogramPerCubicMeter), + (MassConcentrationUnit.OuncePerImperialGallon, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration(_value * 0.028349523125 / 0.00454609, MassConcentrationUnit.KilogramPerCubicMeter), + (MassConcentrationUnit.OuncePerUSGallon, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration(_value * 0.028349523125 / 0.003785411784, MassConcentrationUnit.KilogramPerCubicMeter), (MassConcentrationUnit.PicogramPerDeciliter, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration((_value / 1e-1) * 1e-12d, MassConcentrationUnit.KilogramPerCubicMeter), (MassConcentrationUnit.PicogramPerLiter, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration((_value) * 1e-12d, MassConcentrationUnit.KilogramPerCubicMeter), (MassConcentrationUnit.PicogramPerMicroliter, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration((_value / 1e-6) * 1e-12d, MassConcentrationUnit.KilogramPerCubicMeter), (MassConcentrationUnit.PicogramPerMilliliter, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration((_value / 1e-3) * 1e-12d, MassConcentrationUnit.KilogramPerCubicMeter), - (MassConcentrationUnit.PoundPerCubicFoot, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration(_value / 0.062427961, MassConcentrationUnit.KilogramPerCubicMeter), - (MassConcentrationUnit.PoundPerCubicInch, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration(_value / 3.6127298147753e-5, MassConcentrationUnit.KilogramPerCubicMeter), - (MassConcentrationUnit.PoundPerImperialGallon, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration(_value * 9.9776398e1, MassConcentrationUnit.KilogramPerCubicMeter), - (MassConcentrationUnit.PoundPerUSGallon, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration(_value * 1.19826427e2, MassConcentrationUnit.KilogramPerCubicMeter), - (MassConcentrationUnit.SlugPerCubicFoot, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration(_value * 515.378818, MassConcentrationUnit.KilogramPerCubicMeter), + (MassConcentrationUnit.PoundPerCubicFoot, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration(_value * 0.45359237 / 0.028316846592, MassConcentrationUnit.KilogramPerCubicMeter), + (MassConcentrationUnit.PoundPerCubicInch, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration(_value * 0.45359237 / 1.6387064e-5, MassConcentrationUnit.KilogramPerCubicMeter), + (MassConcentrationUnit.PoundPerImperialGallon, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration(_value * 0.45359237 / 0.00454609, MassConcentrationUnit.KilogramPerCubicMeter), + (MassConcentrationUnit.PoundPerUSGallon, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration(_value * 0.45359237 / 0.003785411784, MassConcentrationUnit.KilogramPerCubicMeter), + (MassConcentrationUnit.SlugPerCubicFoot, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration(_value * (0.45359237 * 9.80665) / (0.3048 * 0.028316846592), MassConcentrationUnit.KilogramPerCubicMeter), (MassConcentrationUnit.TonnePerCubicCentimeter, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration(_value / 1e-9, MassConcentrationUnit.KilogramPerCubicMeter), (MassConcentrationUnit.TonnePerCubicMeter, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration(_value / 0.001, MassConcentrationUnit.KilogramPerCubicMeter), (MassConcentrationUnit.TonnePerCubicMillimeter, MassConcentrationUnit.KilogramPerCubicMeter) => new MassConcentration(_value / 1e-12, MassConcentrationUnit.KilogramPerCubicMeter), @@ -1573,8 +1573,8 @@ private bool TryToUnit(MassConcentrationUnit unit, [NotNullWhen(true)] out MassC (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.KilogramPerCubicCentimeter) => new MassConcentration((_value * 1e-3) / 1e3d, MassConcentrationUnit.KilogramPerCubicCentimeter), (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.KilogramPerCubicMillimeter) => new MassConcentration((_value * 1e-6) / 1e3d, MassConcentrationUnit.KilogramPerCubicMillimeter), (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.KilogramPerLiter) => new MassConcentration((_value) / 1e3d, MassConcentrationUnit.KilogramPerLiter), - (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.KilopoundPerCubicFoot) => new MassConcentration((_value * 0.062427961) / 1e3d, MassConcentrationUnit.KilopoundPerCubicFoot), - (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.KilopoundPerCubicInch) => new MassConcentration((_value * 3.6127298147753e-5) / 1e3d, MassConcentrationUnit.KilopoundPerCubicInch), + (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.KilopoundPerCubicFoot) => new MassConcentration((_value * 0.028316846592 / 0.45359237) / 1e3d, MassConcentrationUnit.KilopoundPerCubicFoot), + (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.KilopoundPerCubicInch) => new MassConcentration((_value * 1.6387064e-5 / 0.45359237) / 1e3d, MassConcentrationUnit.KilopoundPerCubicInch), (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.MicrogramPerCubicMeter) => new MassConcentration((_value * 1e3) / 1e-6d, MassConcentrationUnit.MicrogramPerCubicMeter), (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.MicrogramPerDeciliter) => new MassConcentration((_value * 1e-1) / 1e-6d, MassConcentrationUnit.MicrogramPerDeciliter), (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.MicrogramPerLiter) => new MassConcentration((_value) / 1e-6d, MassConcentrationUnit.MicrogramPerLiter), @@ -1589,17 +1589,17 @@ private bool TryToUnit(MassConcentrationUnit unit, [NotNullWhen(true)] out MassC (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.NanogramPerLiter) => new MassConcentration((_value) / 1e-9d, MassConcentrationUnit.NanogramPerLiter), (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.NanogramPerMicroliter) => new MassConcentration((_value * 1e-6) / 1e-9d, MassConcentrationUnit.NanogramPerMicroliter), (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.NanogramPerMilliliter) => new MassConcentration((_value * 1e-3) / 1e-9d, MassConcentrationUnit.NanogramPerMilliliter), - (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.OuncePerImperialGallon) => new MassConcentration(_value * 0.1603586720609, MassConcentrationUnit.OuncePerImperialGallon), - (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.OuncePerUSGallon) => new MassConcentration(_value * 0.1335264711843, MassConcentrationUnit.OuncePerUSGallon), + (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.OuncePerImperialGallon) => new MassConcentration(_value * 0.00454609 / 0.028349523125, MassConcentrationUnit.OuncePerImperialGallon), + (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.OuncePerUSGallon) => new MassConcentration(_value * 0.003785411784 / 0.028349523125, MassConcentrationUnit.OuncePerUSGallon), (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.PicogramPerDeciliter) => new MassConcentration((_value * 1e-1) / 1e-12d, MassConcentrationUnit.PicogramPerDeciliter), (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.PicogramPerLiter) => new MassConcentration((_value) / 1e-12d, MassConcentrationUnit.PicogramPerLiter), (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.PicogramPerMicroliter) => new MassConcentration((_value * 1e-6) / 1e-12d, MassConcentrationUnit.PicogramPerMicroliter), (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.PicogramPerMilliliter) => new MassConcentration((_value * 1e-3) / 1e-12d, MassConcentrationUnit.PicogramPerMilliliter), - (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.PoundPerCubicFoot) => new MassConcentration(_value * 0.062427961, MassConcentrationUnit.PoundPerCubicFoot), - (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.PoundPerCubicInch) => new MassConcentration(_value * 3.6127298147753e-5, MassConcentrationUnit.PoundPerCubicInch), - (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.PoundPerImperialGallon) => new MassConcentration(_value / 9.9776398e1, MassConcentrationUnit.PoundPerImperialGallon), - (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.PoundPerUSGallon) => new MassConcentration(_value / 1.19826427e2, MassConcentrationUnit.PoundPerUSGallon), - (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.SlugPerCubicFoot) => new MassConcentration(_value * 0.00194032033, MassConcentrationUnit.SlugPerCubicFoot), + (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.PoundPerCubicFoot) => new MassConcentration(_value * 0.028316846592 / 0.45359237, MassConcentrationUnit.PoundPerCubicFoot), + (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.PoundPerCubicInch) => new MassConcentration(_value * 1.6387064e-5 / 0.45359237, MassConcentrationUnit.PoundPerCubicInch), + (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.PoundPerImperialGallon) => new MassConcentration(_value * 0.00454609 / 0.45359237, MassConcentrationUnit.PoundPerImperialGallon), + (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.PoundPerUSGallon) => new MassConcentration(_value * 0.003785411784 / 0.45359237, MassConcentrationUnit.PoundPerUSGallon), + (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.SlugPerCubicFoot) => new MassConcentration(_value * (0.3048 * 0.028316846592) / (0.45359237 * 9.80665), MassConcentrationUnit.SlugPerCubicFoot), (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.TonnePerCubicCentimeter) => new MassConcentration(_value * 1e-9, MassConcentrationUnit.TonnePerCubicCentimeter), (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.TonnePerCubicMeter) => new MassConcentration(_value * 0.001, MassConcentrationUnit.TonnePerCubicMeter), (MassConcentrationUnit.KilogramPerCubicMeter, MassConcentrationUnit.TonnePerCubicMillimeter) => new MassConcentration(_value * 1e-12, MassConcentrationUnit.TonnePerCubicMillimeter), diff --git a/UnitsNet/GeneratedCode/Quantities/MassFlow.g.cs b/UnitsNet/GeneratedCode/Quantities/MassFlow.g.cs index 16c4010673..7a3afff7ed 100644 --- a/UnitsNet/GeneratedCode/Quantities/MassFlow.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MassFlow.g.cs @@ -1296,9 +1296,9 @@ private bool TryToUnit(MassFlowUnit unit, [NotNullWhen(true)] out MassFlow? conv (MassFlowUnit.KilogramPerMinute, MassFlowUnit.GramPerSecond) => new MassFlow(_value / 0.06, MassFlowUnit.GramPerSecond), (MassFlowUnit.KilogramPerSecond, MassFlowUnit.GramPerSecond) => new MassFlow((_value) * 1e3d, MassFlowUnit.GramPerSecond), (MassFlowUnit.MegagramPerDay, MassFlowUnit.GramPerSecond) => new MassFlow((_value / 86400) * 1e6d, MassFlowUnit.GramPerSecond), - (MassFlowUnit.MegapoundPerDay, MassFlowUnit.GramPerSecond) => new MassFlow((_value / 190.47936) * 1e6d, MassFlowUnit.GramPerSecond), - (MassFlowUnit.MegapoundPerHour, MassFlowUnit.GramPerSecond) => new MassFlow((_value / 7.93664) * 1e6d, MassFlowUnit.GramPerSecond), - (MassFlowUnit.MegapoundPerMinute, MassFlowUnit.GramPerSecond) => new MassFlow((_value / 0.132277) * 1e6d, MassFlowUnit.GramPerSecond), + (MassFlowUnit.MegapoundPerDay, MassFlowUnit.GramPerSecond) => new MassFlow((_value * 453.59237 / 86400) * 1e6d, MassFlowUnit.GramPerSecond), + (MassFlowUnit.MegapoundPerHour, MassFlowUnit.GramPerSecond) => new MassFlow((_value * 453.59237 / 3600) * 1e6d, MassFlowUnit.GramPerSecond), + (MassFlowUnit.MegapoundPerMinute, MassFlowUnit.GramPerSecond) => new MassFlow((_value * 453.59237 / 60) * 1e6d, MassFlowUnit.GramPerSecond), (MassFlowUnit.MegapoundPerSecond, MassFlowUnit.GramPerSecond) => new MassFlow((_value * 453.59237) * 1e6d, MassFlowUnit.GramPerSecond), (MassFlowUnit.MicrogramPerDay, MassFlowUnit.GramPerSecond) => new MassFlow((_value / 86400) * 1e-6d, MassFlowUnit.GramPerSecond), (MassFlowUnit.MicrogramPerSecond, MassFlowUnit.GramPerSecond) => new MassFlow((_value) * 1e-6d, MassFlowUnit.GramPerSecond), @@ -1306,13 +1306,13 @@ private bool TryToUnit(MassFlowUnit unit, [NotNullWhen(true)] out MassFlow? conv (MassFlowUnit.MilligramPerSecond, MassFlowUnit.GramPerSecond) => new MassFlow((_value) * 1e-3d, MassFlowUnit.GramPerSecond), (MassFlowUnit.NanogramPerDay, MassFlowUnit.GramPerSecond) => new MassFlow((_value / 86400) * 1e-9d, MassFlowUnit.GramPerSecond), (MassFlowUnit.NanogramPerSecond, MassFlowUnit.GramPerSecond) => new MassFlow((_value) * 1e-9d, MassFlowUnit.GramPerSecond), - (MassFlowUnit.PoundPerDay, MassFlowUnit.GramPerSecond) => new MassFlow(_value / 190.47936, MassFlowUnit.GramPerSecond), - (MassFlowUnit.PoundPerHour, MassFlowUnit.GramPerSecond) => new MassFlow(_value / 7.93664, MassFlowUnit.GramPerSecond), - (MassFlowUnit.PoundPerMinute, MassFlowUnit.GramPerSecond) => new MassFlow(_value / 0.132277, MassFlowUnit.GramPerSecond), + (MassFlowUnit.PoundPerDay, MassFlowUnit.GramPerSecond) => new MassFlow(_value * 453.59237 / 86400, MassFlowUnit.GramPerSecond), + (MassFlowUnit.PoundPerHour, MassFlowUnit.GramPerSecond) => new MassFlow(_value * 453.59237 / 3600, MassFlowUnit.GramPerSecond), + (MassFlowUnit.PoundPerMinute, MassFlowUnit.GramPerSecond) => new MassFlow(_value * 453.59237 / 60, MassFlowUnit.GramPerSecond), (MassFlowUnit.PoundPerSecond, MassFlowUnit.GramPerSecond) => new MassFlow(_value * 453.59237, MassFlowUnit.GramPerSecond), - (MassFlowUnit.ShortTonPerHour, MassFlowUnit.GramPerSecond) => new MassFlow(_value * 251.9957611, MassFlowUnit.GramPerSecond), + (MassFlowUnit.ShortTonPerHour, MassFlowUnit.GramPerSecond) => new MassFlow(_value * 907.18474 / 3.6, MassFlowUnit.GramPerSecond), (MassFlowUnit.TonnePerDay, MassFlowUnit.GramPerSecond) => new MassFlow(_value / 0.0864000, MassFlowUnit.GramPerSecond), - (MassFlowUnit.TonnePerHour, MassFlowUnit.GramPerSecond) => new MassFlow(1000 * _value / 3.6, MassFlowUnit.GramPerSecond), + (MassFlowUnit.TonnePerHour, MassFlowUnit.GramPerSecond) => new MassFlow(_value * 1000 / 3.6, MassFlowUnit.GramPerSecond), // BaseUnit -> MassFlowUnit (MassFlowUnit.GramPerSecond, MassFlowUnit.CentigramPerDay) => new MassFlow((_value * 86400) / 1e-2d, MassFlowUnit.CentigramPerDay), @@ -1330,9 +1330,9 @@ private bool TryToUnit(MassFlowUnit unit, [NotNullWhen(true)] out MassFlow? conv (MassFlowUnit.GramPerSecond, MassFlowUnit.KilogramPerMinute) => new MassFlow(_value * 0.06, MassFlowUnit.KilogramPerMinute), (MassFlowUnit.GramPerSecond, MassFlowUnit.KilogramPerSecond) => new MassFlow((_value) / 1e3d, MassFlowUnit.KilogramPerSecond), (MassFlowUnit.GramPerSecond, MassFlowUnit.MegagramPerDay) => new MassFlow((_value * 86400) / 1e6d, MassFlowUnit.MegagramPerDay), - (MassFlowUnit.GramPerSecond, MassFlowUnit.MegapoundPerDay) => new MassFlow((_value * 190.47936) / 1e6d, MassFlowUnit.MegapoundPerDay), - (MassFlowUnit.GramPerSecond, MassFlowUnit.MegapoundPerHour) => new MassFlow((_value * 7.93664) / 1e6d, MassFlowUnit.MegapoundPerHour), - (MassFlowUnit.GramPerSecond, MassFlowUnit.MegapoundPerMinute) => new MassFlow((_value * 0.132277) / 1e6d, MassFlowUnit.MegapoundPerMinute), + (MassFlowUnit.GramPerSecond, MassFlowUnit.MegapoundPerDay) => new MassFlow((_value * 86400 / 453.59237) / 1e6d, MassFlowUnit.MegapoundPerDay), + (MassFlowUnit.GramPerSecond, MassFlowUnit.MegapoundPerHour) => new MassFlow((_value * 3600 / 453.59237) / 1e6d, MassFlowUnit.MegapoundPerHour), + (MassFlowUnit.GramPerSecond, MassFlowUnit.MegapoundPerMinute) => new MassFlow((_value * 60 / 453.59237) / 1e6d, MassFlowUnit.MegapoundPerMinute), (MassFlowUnit.GramPerSecond, MassFlowUnit.MegapoundPerSecond) => new MassFlow((_value / 453.59237) / 1e6d, MassFlowUnit.MegapoundPerSecond), (MassFlowUnit.GramPerSecond, MassFlowUnit.MicrogramPerDay) => new MassFlow((_value * 86400) / 1e-6d, MassFlowUnit.MicrogramPerDay), (MassFlowUnit.GramPerSecond, MassFlowUnit.MicrogramPerSecond) => new MassFlow((_value) / 1e-6d, MassFlowUnit.MicrogramPerSecond), @@ -1340,11 +1340,11 @@ private bool TryToUnit(MassFlowUnit unit, [NotNullWhen(true)] out MassFlow? conv (MassFlowUnit.GramPerSecond, MassFlowUnit.MilligramPerSecond) => new MassFlow((_value) / 1e-3d, MassFlowUnit.MilligramPerSecond), (MassFlowUnit.GramPerSecond, MassFlowUnit.NanogramPerDay) => new MassFlow((_value * 86400) / 1e-9d, MassFlowUnit.NanogramPerDay), (MassFlowUnit.GramPerSecond, MassFlowUnit.NanogramPerSecond) => new MassFlow((_value) / 1e-9d, MassFlowUnit.NanogramPerSecond), - (MassFlowUnit.GramPerSecond, MassFlowUnit.PoundPerDay) => new MassFlow(_value * 190.47936, MassFlowUnit.PoundPerDay), - (MassFlowUnit.GramPerSecond, MassFlowUnit.PoundPerHour) => new MassFlow(_value * 7.93664, MassFlowUnit.PoundPerHour), - (MassFlowUnit.GramPerSecond, MassFlowUnit.PoundPerMinute) => new MassFlow(_value * 0.132277, MassFlowUnit.PoundPerMinute), + (MassFlowUnit.GramPerSecond, MassFlowUnit.PoundPerDay) => new MassFlow(_value * 86400 / 453.59237, MassFlowUnit.PoundPerDay), + (MassFlowUnit.GramPerSecond, MassFlowUnit.PoundPerHour) => new MassFlow(_value * 3600 / 453.59237, MassFlowUnit.PoundPerHour), + (MassFlowUnit.GramPerSecond, MassFlowUnit.PoundPerMinute) => new MassFlow(_value * 60 / 453.59237, MassFlowUnit.PoundPerMinute), (MassFlowUnit.GramPerSecond, MassFlowUnit.PoundPerSecond) => new MassFlow(_value / 453.59237, MassFlowUnit.PoundPerSecond), - (MassFlowUnit.GramPerSecond, MassFlowUnit.ShortTonPerHour) => new MassFlow(_value / 251.9957611, MassFlowUnit.ShortTonPerHour), + (MassFlowUnit.GramPerSecond, MassFlowUnit.ShortTonPerHour) => new MassFlow(_value * 3.6 / 907.18474, MassFlowUnit.ShortTonPerHour), (MassFlowUnit.GramPerSecond, MassFlowUnit.TonnePerDay) => new MassFlow(_value * 0.0864000, MassFlowUnit.TonnePerDay), (MassFlowUnit.GramPerSecond, MassFlowUnit.TonnePerHour) => new MassFlow(_value * 3.6 / 1000, MassFlowUnit.TonnePerHour), diff --git a/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.g.cs b/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.g.cs index 487ff22190..d1c6c45b8b 100644 --- a/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/MassMomentOfInertia.g.cs @@ -1144,10 +1144,10 @@ private bool TryToUnit(MassMomentOfInertiaUnit unit, [NotNullWhen(true)] out Mas (MassMomentOfInertiaUnit.MilligramSquareDecimeter, MassMomentOfInertiaUnit.KilogramSquareMeter) => new MassMomentOfInertia((_value / 1e5) * 1e-3d, MassMomentOfInertiaUnit.KilogramSquareMeter), (MassMomentOfInertiaUnit.MilligramSquareMeter, MassMomentOfInertiaUnit.KilogramSquareMeter) => new MassMomentOfInertia((_value / 1e3) * 1e-3d, MassMomentOfInertiaUnit.KilogramSquareMeter), (MassMomentOfInertiaUnit.MilligramSquareMillimeter, MassMomentOfInertiaUnit.KilogramSquareMeter) => new MassMomentOfInertia((_value / 1e9) * 1e-3d, MassMomentOfInertiaUnit.KilogramSquareMeter), - (MassMomentOfInertiaUnit.PoundSquareFoot, MassMomentOfInertiaUnit.KilogramSquareMeter) => new MassMomentOfInertia(_value * 4.21401101e-2, MassMomentOfInertiaUnit.KilogramSquareMeter), - (MassMomentOfInertiaUnit.PoundSquareInch, MassMomentOfInertiaUnit.KilogramSquareMeter) => new MassMomentOfInertia(_value * 2.9263965e-4, MassMomentOfInertiaUnit.KilogramSquareMeter), - (MassMomentOfInertiaUnit.SlugSquareFoot, MassMomentOfInertiaUnit.KilogramSquareMeter) => new MassMomentOfInertia(_value * 1.3558179619, MassMomentOfInertiaUnit.KilogramSquareMeter), - (MassMomentOfInertiaUnit.SlugSquareInch, MassMomentOfInertiaUnit.KilogramSquareMeter) => new MassMomentOfInertia(_value * 9.41540242e-3, MassMomentOfInertiaUnit.KilogramSquareMeter), + (MassMomentOfInertiaUnit.PoundSquareFoot, MassMomentOfInertiaUnit.KilogramSquareMeter) => new MassMomentOfInertia(_value * (0.45359237 * 9.290304e-2), MassMomentOfInertiaUnit.KilogramSquareMeter), + (MassMomentOfInertiaUnit.PoundSquareInch, MassMomentOfInertiaUnit.KilogramSquareMeter) => new MassMomentOfInertia(_value * (0.45359237 * 0.00064516), MassMomentOfInertiaUnit.KilogramSquareMeter), + (MassMomentOfInertiaUnit.SlugSquareFoot, MassMomentOfInertiaUnit.KilogramSquareMeter) => new MassMomentOfInertia(_value * 0.45359237 * 9.290304e-2 * 9.80665 / 0.3048, MassMomentOfInertiaUnit.KilogramSquareMeter), + (MassMomentOfInertiaUnit.SlugSquareInch, MassMomentOfInertiaUnit.KilogramSquareMeter) => new MassMomentOfInertia(_value * 0.45359237 * 0.00064516 * 9.80665 / 0.3048, MassMomentOfInertiaUnit.KilogramSquareMeter), (MassMomentOfInertiaUnit.TonneSquareCentimeter, MassMomentOfInertiaUnit.KilogramSquareMeter) => new MassMomentOfInertia(_value / 1e1, MassMomentOfInertiaUnit.KilogramSquareMeter), (MassMomentOfInertiaUnit.TonneSquareDecimeter, MassMomentOfInertiaUnit.KilogramSquareMeter) => new MassMomentOfInertia(_value / 1e-1, MassMomentOfInertiaUnit.KilogramSquareMeter), (MassMomentOfInertiaUnit.TonneSquareMeter, MassMomentOfInertiaUnit.KilogramSquareMeter) => new MassMomentOfInertia(_value / 1e-3, MassMomentOfInertiaUnit.KilogramSquareMeter), @@ -1173,10 +1173,10 @@ private bool TryToUnit(MassMomentOfInertiaUnit unit, [NotNullWhen(true)] out Mas (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.MilligramSquareDecimeter) => new MassMomentOfInertia((_value * 1e5) / 1e-3d, MassMomentOfInertiaUnit.MilligramSquareDecimeter), (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.MilligramSquareMeter) => new MassMomentOfInertia((_value * 1e3) / 1e-3d, MassMomentOfInertiaUnit.MilligramSquareMeter), (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.MilligramSquareMillimeter) => new MassMomentOfInertia((_value * 1e9) / 1e-3d, MassMomentOfInertiaUnit.MilligramSquareMillimeter), - (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.PoundSquareFoot) => new MassMomentOfInertia(_value / 4.21401101e-2, MassMomentOfInertiaUnit.PoundSquareFoot), - (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.PoundSquareInch) => new MassMomentOfInertia(_value / 2.9263965e-4, MassMomentOfInertiaUnit.PoundSquareInch), - (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.SlugSquareFoot) => new MassMomentOfInertia(_value / 1.3558179619, MassMomentOfInertiaUnit.SlugSquareFoot), - (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.SlugSquareInch) => new MassMomentOfInertia(_value / 9.41540242e-3, MassMomentOfInertiaUnit.SlugSquareInch), + (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.PoundSquareFoot) => new MassMomentOfInertia(_value / (0.45359237 * 9.290304e-2), MassMomentOfInertiaUnit.PoundSquareFoot), + (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.PoundSquareInch) => new MassMomentOfInertia(_value / (0.45359237 * 0.00064516), MassMomentOfInertiaUnit.PoundSquareInch), + (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.SlugSquareFoot) => new MassMomentOfInertia(_value * 0.3048 / (0.45359237 * 9.290304e-2 * 9.80665), MassMomentOfInertiaUnit.SlugSquareFoot), + (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.SlugSquareInch) => new MassMomentOfInertia(_value * 0.3048 / (0.45359237 * 0.00064516 * 9.80665), MassMomentOfInertiaUnit.SlugSquareInch), (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.TonneSquareCentimeter) => new MassMomentOfInertia(_value * 1e1, MassMomentOfInertiaUnit.TonneSquareCentimeter), (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.TonneSquareDecimeter) => new MassMomentOfInertia(_value * 1e-1, MassMomentOfInertiaUnit.TonneSquareDecimeter), (MassMomentOfInertiaUnit.KilogramSquareMeter, MassMomentOfInertiaUnit.TonneSquareMeter) => new MassMomentOfInertia(_value * 1e-3, MassMomentOfInertiaUnit.TonneSquareMeter), diff --git a/UnitsNet/GeneratedCode/Quantities/Molarity.g.cs b/UnitsNet/GeneratedCode/Quantities/Molarity.g.cs index d2b7503eab..09ea4ce616 100644 --- a/UnitsNet/GeneratedCode/Quantities/Molarity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Molarity.g.cs @@ -906,7 +906,7 @@ private bool TryToUnit(MolarityUnit unit, [NotNullWhen(true)] out Molarity? conv (MolarityUnit.MolePerLiter, MolarityUnit.MolePerCubicMeter) => new Molarity(_value / 1e-3, MolarityUnit.MolePerCubicMeter), (MolarityUnit.NanomolePerLiter, MolarityUnit.MolePerCubicMeter) => new Molarity((_value / 1e-3) * 1e-9d, MolarityUnit.MolePerCubicMeter), (MolarityUnit.PicomolePerLiter, MolarityUnit.MolePerCubicMeter) => new Molarity((_value / 1e-3) * 1e-12d, MolarityUnit.MolePerCubicMeter), - (MolarityUnit.PoundMolePerCubicFoot, MolarityUnit.MolePerCubicMeter) => new Molarity(_value / 6.2427960576144611956325455827221e-5, MolarityUnit.MolePerCubicMeter), + (MolarityUnit.PoundMolePerCubicFoot, MolarityUnit.MolePerCubicMeter) => new Molarity(_value * 1000 * 0.45359237 / 0.028316846592, MolarityUnit.MolePerCubicMeter), // BaseUnit -> MolarityUnit (MolarityUnit.MolePerCubicMeter, MolarityUnit.CentimolePerLiter) => new Molarity((_value * 1e-3) / 1e-2d, MolarityUnit.CentimolePerLiter), @@ -918,7 +918,7 @@ private bool TryToUnit(MolarityUnit unit, [NotNullWhen(true)] out Molarity? conv (MolarityUnit.MolePerCubicMeter, MolarityUnit.MolePerLiter) => new Molarity(_value * 1e-3, MolarityUnit.MolePerLiter), (MolarityUnit.MolePerCubicMeter, MolarityUnit.NanomolePerLiter) => new Molarity((_value * 1e-3) / 1e-9d, MolarityUnit.NanomolePerLiter), (MolarityUnit.MolePerCubicMeter, MolarityUnit.PicomolePerLiter) => new Molarity((_value * 1e-3) / 1e-12d, MolarityUnit.PicomolePerLiter), - (MolarityUnit.MolePerCubicMeter, MolarityUnit.PoundMolePerCubicFoot) => new Molarity(_value * 6.2427960576144611956325455827221e-5, MolarityUnit.PoundMolePerCubicFoot), + (MolarityUnit.MolePerCubicMeter, MolarityUnit.PoundMolePerCubicFoot) => new Molarity(_value / (1000 * 0.45359237 / 0.028316846592), MolarityUnit.PoundMolePerCubicFoot), _ => null }; diff --git a/UnitsNet/GeneratedCode/Quantities/PowerDensity.g.cs b/UnitsNet/GeneratedCode/Quantities/PowerDensity.g.cs index 1d18297a72..e89c8e059c 100644 --- a/UnitsNet/GeneratedCode/Quantities/PowerDensity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/PowerDensity.g.cs @@ -1381,93 +1381,93 @@ private bool TryToUnit(PowerDensityUnit unit, [NotNullWhen(true)] out PowerDensi PowerDensity? convertedOrNull = (Unit, unit) switch { // PowerDensityUnit -> BaseUnit - (PowerDensityUnit.DecawattPerCubicFoot, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value * 3.531466672148859e1) * 1e1d, PowerDensityUnit.WattPerCubicMeter), - (PowerDensityUnit.DecawattPerCubicInch, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value * 6.102374409473228e4) * 1e1d, PowerDensityUnit.WattPerCubicMeter), + (PowerDensityUnit.DecawattPerCubicFoot, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value / 0.028316846592) * 1e1d, PowerDensityUnit.WattPerCubicMeter), + (PowerDensityUnit.DecawattPerCubicInch, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value / 1.6387064e-5) * 1e1d, PowerDensityUnit.WattPerCubicMeter), (PowerDensityUnit.DecawattPerCubicMeter, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value) * 1e1d, PowerDensityUnit.WattPerCubicMeter), (PowerDensityUnit.DecawattPerLiter, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value * 1.0e3) * 1e1d, PowerDensityUnit.WattPerCubicMeter), - (PowerDensityUnit.DeciwattPerCubicFoot, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value * 3.531466672148859e1) * 1e-1d, PowerDensityUnit.WattPerCubicMeter), - (PowerDensityUnit.DeciwattPerCubicInch, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value * 6.102374409473228e4) * 1e-1d, PowerDensityUnit.WattPerCubicMeter), + (PowerDensityUnit.DeciwattPerCubicFoot, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value / 0.028316846592) * 1e-1d, PowerDensityUnit.WattPerCubicMeter), + (PowerDensityUnit.DeciwattPerCubicInch, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value / 1.6387064e-5) * 1e-1d, PowerDensityUnit.WattPerCubicMeter), (PowerDensityUnit.DeciwattPerCubicMeter, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value) * 1e-1d, PowerDensityUnit.WattPerCubicMeter), (PowerDensityUnit.DeciwattPerLiter, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value * 1.0e3) * 1e-1d, PowerDensityUnit.WattPerCubicMeter), - (PowerDensityUnit.GigawattPerCubicFoot, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value * 3.531466672148859e1) * 1e9d, PowerDensityUnit.WattPerCubicMeter), - (PowerDensityUnit.GigawattPerCubicInch, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value * 6.102374409473228e4) * 1e9d, PowerDensityUnit.WattPerCubicMeter), + (PowerDensityUnit.GigawattPerCubicFoot, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value / 0.028316846592) * 1e9d, PowerDensityUnit.WattPerCubicMeter), + (PowerDensityUnit.GigawattPerCubicInch, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value / 1.6387064e-5) * 1e9d, PowerDensityUnit.WattPerCubicMeter), (PowerDensityUnit.GigawattPerCubicMeter, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value) * 1e9d, PowerDensityUnit.WattPerCubicMeter), (PowerDensityUnit.GigawattPerLiter, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value * 1.0e3) * 1e9d, PowerDensityUnit.WattPerCubicMeter), - (PowerDensityUnit.KilowattPerCubicFoot, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value * 3.531466672148859e1) * 1e3d, PowerDensityUnit.WattPerCubicMeter), - (PowerDensityUnit.KilowattPerCubicInch, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value * 6.102374409473228e4) * 1e3d, PowerDensityUnit.WattPerCubicMeter), + (PowerDensityUnit.KilowattPerCubicFoot, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value / 0.028316846592) * 1e3d, PowerDensityUnit.WattPerCubicMeter), + (PowerDensityUnit.KilowattPerCubicInch, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value / 1.6387064e-5) * 1e3d, PowerDensityUnit.WattPerCubicMeter), (PowerDensityUnit.KilowattPerCubicMeter, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value) * 1e3d, PowerDensityUnit.WattPerCubicMeter), (PowerDensityUnit.KilowattPerLiter, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value * 1.0e3) * 1e3d, PowerDensityUnit.WattPerCubicMeter), - (PowerDensityUnit.MegawattPerCubicFoot, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value * 3.531466672148859e1) * 1e6d, PowerDensityUnit.WattPerCubicMeter), - (PowerDensityUnit.MegawattPerCubicInch, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value * 6.102374409473228e4) * 1e6d, PowerDensityUnit.WattPerCubicMeter), + (PowerDensityUnit.MegawattPerCubicFoot, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value / 0.028316846592) * 1e6d, PowerDensityUnit.WattPerCubicMeter), + (PowerDensityUnit.MegawattPerCubicInch, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value / 1.6387064e-5) * 1e6d, PowerDensityUnit.WattPerCubicMeter), (PowerDensityUnit.MegawattPerCubicMeter, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value) * 1e6d, PowerDensityUnit.WattPerCubicMeter), (PowerDensityUnit.MegawattPerLiter, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value * 1.0e3) * 1e6d, PowerDensityUnit.WattPerCubicMeter), - (PowerDensityUnit.MicrowattPerCubicFoot, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value * 3.531466672148859e1) * 1e-6d, PowerDensityUnit.WattPerCubicMeter), - (PowerDensityUnit.MicrowattPerCubicInch, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value * 6.102374409473228e4) * 1e-6d, PowerDensityUnit.WattPerCubicMeter), + (PowerDensityUnit.MicrowattPerCubicFoot, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value / 0.028316846592) * 1e-6d, PowerDensityUnit.WattPerCubicMeter), + (PowerDensityUnit.MicrowattPerCubicInch, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value / 1.6387064e-5) * 1e-6d, PowerDensityUnit.WattPerCubicMeter), (PowerDensityUnit.MicrowattPerCubicMeter, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value) * 1e-6d, PowerDensityUnit.WattPerCubicMeter), (PowerDensityUnit.MicrowattPerLiter, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value * 1.0e3) * 1e-6d, PowerDensityUnit.WattPerCubicMeter), - (PowerDensityUnit.MilliwattPerCubicFoot, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value * 3.531466672148859e1) * 1e-3d, PowerDensityUnit.WattPerCubicMeter), - (PowerDensityUnit.MilliwattPerCubicInch, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value * 6.102374409473228e4) * 1e-3d, PowerDensityUnit.WattPerCubicMeter), + (PowerDensityUnit.MilliwattPerCubicFoot, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value / 0.028316846592) * 1e-3d, PowerDensityUnit.WattPerCubicMeter), + (PowerDensityUnit.MilliwattPerCubicInch, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value / 1.6387064e-5) * 1e-3d, PowerDensityUnit.WattPerCubicMeter), (PowerDensityUnit.MilliwattPerCubicMeter, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value) * 1e-3d, PowerDensityUnit.WattPerCubicMeter), (PowerDensityUnit.MilliwattPerLiter, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value * 1.0e3) * 1e-3d, PowerDensityUnit.WattPerCubicMeter), - (PowerDensityUnit.NanowattPerCubicFoot, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value * 3.531466672148859e1) * 1e-9d, PowerDensityUnit.WattPerCubicMeter), - (PowerDensityUnit.NanowattPerCubicInch, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value * 6.102374409473228e4) * 1e-9d, PowerDensityUnit.WattPerCubicMeter), + (PowerDensityUnit.NanowattPerCubicFoot, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value / 0.028316846592) * 1e-9d, PowerDensityUnit.WattPerCubicMeter), + (PowerDensityUnit.NanowattPerCubicInch, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value / 1.6387064e-5) * 1e-9d, PowerDensityUnit.WattPerCubicMeter), (PowerDensityUnit.NanowattPerCubicMeter, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value) * 1e-9d, PowerDensityUnit.WattPerCubicMeter), (PowerDensityUnit.NanowattPerLiter, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value * 1.0e3) * 1e-9d, PowerDensityUnit.WattPerCubicMeter), - (PowerDensityUnit.PicowattPerCubicFoot, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value * 3.531466672148859e1) * 1e-12d, PowerDensityUnit.WattPerCubicMeter), - (PowerDensityUnit.PicowattPerCubicInch, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value * 6.102374409473228e4) * 1e-12d, PowerDensityUnit.WattPerCubicMeter), + (PowerDensityUnit.PicowattPerCubicFoot, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value / 0.028316846592) * 1e-12d, PowerDensityUnit.WattPerCubicMeter), + (PowerDensityUnit.PicowattPerCubicInch, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value / 1.6387064e-5) * 1e-12d, PowerDensityUnit.WattPerCubicMeter), (PowerDensityUnit.PicowattPerCubicMeter, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value) * 1e-12d, PowerDensityUnit.WattPerCubicMeter), (PowerDensityUnit.PicowattPerLiter, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value * 1.0e3) * 1e-12d, PowerDensityUnit.WattPerCubicMeter), - (PowerDensityUnit.TerawattPerCubicFoot, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value * 3.531466672148859e1) * 1e12d, PowerDensityUnit.WattPerCubicMeter), - (PowerDensityUnit.TerawattPerCubicInch, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value * 6.102374409473228e4) * 1e12d, PowerDensityUnit.WattPerCubicMeter), + (PowerDensityUnit.TerawattPerCubicFoot, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value / 0.028316846592) * 1e12d, PowerDensityUnit.WattPerCubicMeter), + (PowerDensityUnit.TerawattPerCubicInch, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value / 1.6387064e-5) * 1e12d, PowerDensityUnit.WattPerCubicMeter), (PowerDensityUnit.TerawattPerCubicMeter, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value) * 1e12d, PowerDensityUnit.WattPerCubicMeter), (PowerDensityUnit.TerawattPerLiter, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity((_value * 1.0e3) * 1e12d, PowerDensityUnit.WattPerCubicMeter), - (PowerDensityUnit.WattPerCubicFoot, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity(_value * 3.531466672148859e1, PowerDensityUnit.WattPerCubicMeter), - (PowerDensityUnit.WattPerCubicInch, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity(_value * 6.102374409473228e4, PowerDensityUnit.WattPerCubicMeter), + (PowerDensityUnit.WattPerCubicFoot, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity(_value / 0.028316846592, PowerDensityUnit.WattPerCubicMeter), + (PowerDensityUnit.WattPerCubicInch, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity(_value / 1.6387064e-5, PowerDensityUnit.WattPerCubicMeter), (PowerDensityUnit.WattPerLiter, PowerDensityUnit.WattPerCubicMeter) => new PowerDensity(_value * 1.0e3, PowerDensityUnit.WattPerCubicMeter), // BaseUnit -> PowerDensityUnit - (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.DecawattPerCubicFoot) => new PowerDensity((_value / 3.531466672148859e1) / 1e1d, PowerDensityUnit.DecawattPerCubicFoot), - (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.DecawattPerCubicInch) => new PowerDensity((_value / 6.102374409473228e4) / 1e1d, PowerDensityUnit.DecawattPerCubicInch), + (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.DecawattPerCubicFoot) => new PowerDensity((_value * 0.028316846592) / 1e1d, PowerDensityUnit.DecawattPerCubicFoot), + (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.DecawattPerCubicInch) => new PowerDensity((_value * 1.6387064e-5) / 1e1d, PowerDensityUnit.DecawattPerCubicInch), (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.DecawattPerCubicMeter) => new PowerDensity((_value) / 1e1d, PowerDensityUnit.DecawattPerCubicMeter), (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.DecawattPerLiter) => new PowerDensity((_value / 1.0e3) / 1e1d, PowerDensityUnit.DecawattPerLiter), - (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.DeciwattPerCubicFoot) => new PowerDensity((_value / 3.531466672148859e1) / 1e-1d, PowerDensityUnit.DeciwattPerCubicFoot), - (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.DeciwattPerCubicInch) => new PowerDensity((_value / 6.102374409473228e4) / 1e-1d, PowerDensityUnit.DeciwattPerCubicInch), + (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.DeciwattPerCubicFoot) => new PowerDensity((_value * 0.028316846592) / 1e-1d, PowerDensityUnit.DeciwattPerCubicFoot), + (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.DeciwattPerCubicInch) => new PowerDensity((_value * 1.6387064e-5) / 1e-1d, PowerDensityUnit.DeciwattPerCubicInch), (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.DeciwattPerCubicMeter) => new PowerDensity((_value) / 1e-1d, PowerDensityUnit.DeciwattPerCubicMeter), (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.DeciwattPerLiter) => new PowerDensity((_value / 1.0e3) / 1e-1d, PowerDensityUnit.DeciwattPerLiter), - (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.GigawattPerCubicFoot) => new PowerDensity((_value / 3.531466672148859e1) / 1e9d, PowerDensityUnit.GigawattPerCubicFoot), - (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.GigawattPerCubicInch) => new PowerDensity((_value / 6.102374409473228e4) / 1e9d, PowerDensityUnit.GigawattPerCubicInch), + (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.GigawattPerCubicFoot) => new PowerDensity((_value * 0.028316846592) / 1e9d, PowerDensityUnit.GigawattPerCubicFoot), + (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.GigawattPerCubicInch) => new PowerDensity((_value * 1.6387064e-5) / 1e9d, PowerDensityUnit.GigawattPerCubicInch), (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.GigawattPerCubicMeter) => new PowerDensity((_value) / 1e9d, PowerDensityUnit.GigawattPerCubicMeter), (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.GigawattPerLiter) => new PowerDensity((_value / 1.0e3) / 1e9d, PowerDensityUnit.GigawattPerLiter), - (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.KilowattPerCubicFoot) => new PowerDensity((_value / 3.531466672148859e1) / 1e3d, PowerDensityUnit.KilowattPerCubicFoot), - (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.KilowattPerCubicInch) => new PowerDensity((_value / 6.102374409473228e4) / 1e3d, PowerDensityUnit.KilowattPerCubicInch), + (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.KilowattPerCubicFoot) => new PowerDensity((_value * 0.028316846592) / 1e3d, PowerDensityUnit.KilowattPerCubicFoot), + (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.KilowattPerCubicInch) => new PowerDensity((_value * 1.6387064e-5) / 1e3d, PowerDensityUnit.KilowattPerCubicInch), (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.KilowattPerCubicMeter) => new PowerDensity((_value) / 1e3d, PowerDensityUnit.KilowattPerCubicMeter), (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.KilowattPerLiter) => new PowerDensity((_value / 1.0e3) / 1e3d, PowerDensityUnit.KilowattPerLiter), - (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.MegawattPerCubicFoot) => new PowerDensity((_value / 3.531466672148859e1) / 1e6d, PowerDensityUnit.MegawattPerCubicFoot), - (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.MegawattPerCubicInch) => new PowerDensity((_value / 6.102374409473228e4) / 1e6d, PowerDensityUnit.MegawattPerCubicInch), + (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.MegawattPerCubicFoot) => new PowerDensity((_value * 0.028316846592) / 1e6d, PowerDensityUnit.MegawattPerCubicFoot), + (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.MegawattPerCubicInch) => new PowerDensity((_value * 1.6387064e-5) / 1e6d, PowerDensityUnit.MegawattPerCubicInch), (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.MegawattPerCubicMeter) => new PowerDensity((_value) / 1e6d, PowerDensityUnit.MegawattPerCubicMeter), (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.MegawattPerLiter) => new PowerDensity((_value / 1.0e3) / 1e6d, PowerDensityUnit.MegawattPerLiter), - (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.MicrowattPerCubicFoot) => new PowerDensity((_value / 3.531466672148859e1) / 1e-6d, PowerDensityUnit.MicrowattPerCubicFoot), - (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.MicrowattPerCubicInch) => new PowerDensity((_value / 6.102374409473228e4) / 1e-6d, PowerDensityUnit.MicrowattPerCubicInch), + (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.MicrowattPerCubicFoot) => new PowerDensity((_value * 0.028316846592) / 1e-6d, PowerDensityUnit.MicrowattPerCubicFoot), + (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.MicrowattPerCubicInch) => new PowerDensity((_value * 1.6387064e-5) / 1e-6d, PowerDensityUnit.MicrowattPerCubicInch), (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.MicrowattPerCubicMeter) => new PowerDensity((_value) / 1e-6d, PowerDensityUnit.MicrowattPerCubicMeter), (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.MicrowattPerLiter) => new PowerDensity((_value / 1.0e3) / 1e-6d, PowerDensityUnit.MicrowattPerLiter), - (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.MilliwattPerCubicFoot) => new PowerDensity((_value / 3.531466672148859e1) / 1e-3d, PowerDensityUnit.MilliwattPerCubicFoot), - (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.MilliwattPerCubicInch) => new PowerDensity((_value / 6.102374409473228e4) / 1e-3d, PowerDensityUnit.MilliwattPerCubicInch), + (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.MilliwattPerCubicFoot) => new PowerDensity((_value * 0.028316846592) / 1e-3d, PowerDensityUnit.MilliwattPerCubicFoot), + (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.MilliwattPerCubicInch) => new PowerDensity((_value * 1.6387064e-5) / 1e-3d, PowerDensityUnit.MilliwattPerCubicInch), (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.MilliwattPerCubicMeter) => new PowerDensity((_value) / 1e-3d, PowerDensityUnit.MilliwattPerCubicMeter), (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.MilliwattPerLiter) => new PowerDensity((_value / 1.0e3) / 1e-3d, PowerDensityUnit.MilliwattPerLiter), - (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.NanowattPerCubicFoot) => new PowerDensity((_value / 3.531466672148859e1) / 1e-9d, PowerDensityUnit.NanowattPerCubicFoot), - (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.NanowattPerCubicInch) => new PowerDensity((_value / 6.102374409473228e4) / 1e-9d, PowerDensityUnit.NanowattPerCubicInch), + (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.NanowattPerCubicFoot) => new PowerDensity((_value * 0.028316846592) / 1e-9d, PowerDensityUnit.NanowattPerCubicFoot), + (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.NanowattPerCubicInch) => new PowerDensity((_value * 1.6387064e-5) / 1e-9d, PowerDensityUnit.NanowattPerCubicInch), (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.NanowattPerCubicMeter) => new PowerDensity((_value) / 1e-9d, PowerDensityUnit.NanowattPerCubicMeter), (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.NanowattPerLiter) => new PowerDensity((_value / 1.0e3) / 1e-9d, PowerDensityUnit.NanowattPerLiter), - (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.PicowattPerCubicFoot) => new PowerDensity((_value / 3.531466672148859e1) / 1e-12d, PowerDensityUnit.PicowattPerCubicFoot), - (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.PicowattPerCubicInch) => new PowerDensity((_value / 6.102374409473228e4) / 1e-12d, PowerDensityUnit.PicowattPerCubicInch), + (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.PicowattPerCubicFoot) => new PowerDensity((_value * 0.028316846592) / 1e-12d, PowerDensityUnit.PicowattPerCubicFoot), + (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.PicowattPerCubicInch) => new PowerDensity((_value * 1.6387064e-5) / 1e-12d, PowerDensityUnit.PicowattPerCubicInch), (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.PicowattPerCubicMeter) => new PowerDensity((_value) / 1e-12d, PowerDensityUnit.PicowattPerCubicMeter), (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.PicowattPerLiter) => new PowerDensity((_value / 1.0e3) / 1e-12d, PowerDensityUnit.PicowattPerLiter), - (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.TerawattPerCubicFoot) => new PowerDensity((_value / 3.531466672148859e1) / 1e12d, PowerDensityUnit.TerawattPerCubicFoot), - (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.TerawattPerCubicInch) => new PowerDensity((_value / 6.102374409473228e4) / 1e12d, PowerDensityUnit.TerawattPerCubicInch), + (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.TerawattPerCubicFoot) => new PowerDensity((_value * 0.028316846592) / 1e12d, PowerDensityUnit.TerawattPerCubicFoot), + (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.TerawattPerCubicInch) => new PowerDensity((_value * 1.6387064e-5) / 1e12d, PowerDensityUnit.TerawattPerCubicInch), (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.TerawattPerCubicMeter) => new PowerDensity((_value) / 1e12d, PowerDensityUnit.TerawattPerCubicMeter), (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.TerawattPerLiter) => new PowerDensity((_value / 1.0e3) / 1e12d, PowerDensityUnit.TerawattPerLiter), - (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.WattPerCubicFoot) => new PowerDensity(_value / 3.531466672148859e1, PowerDensityUnit.WattPerCubicFoot), - (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.WattPerCubicInch) => new PowerDensity(_value / 6.102374409473228e4, PowerDensityUnit.WattPerCubicInch), + (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.WattPerCubicFoot) => new PowerDensity(_value * 0.028316846592, PowerDensityUnit.WattPerCubicFoot), + (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.WattPerCubicInch) => new PowerDensity(_value * 1.6387064e-5, PowerDensityUnit.WattPerCubicInch), (PowerDensityUnit.WattPerCubicMeter, PowerDensityUnit.WattPerLiter) => new PowerDensity(_value / 1.0e3, PowerDensityUnit.WattPerLiter), _ => null diff --git a/UnitsNet/GeneratedCode/Quantities/PressureChangeRate.g.cs b/UnitsNet/GeneratedCode/Quantities/PressureChangeRate.g.cs index 98d8e18a3e..c8021d851b 100644 --- a/UnitsNet/GeneratedCode/Quantities/PressureChangeRate.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/PressureChangeRate.g.cs @@ -983,18 +983,18 @@ private bool TryToUnit(PressureChangeRateUnit unit, [NotNullWhen(true)] out Pres (PressureChangeRateUnit.BarPerSecond, PressureChangeRateUnit.PascalPerSecond) => new PressureChangeRate(_value * 1e5, PressureChangeRateUnit.PascalPerSecond), (PressureChangeRateUnit.KilopascalPerMinute, PressureChangeRateUnit.PascalPerSecond) => new PressureChangeRate((_value / 60) * 1e3d, PressureChangeRateUnit.PascalPerSecond), (PressureChangeRateUnit.KilopascalPerSecond, PressureChangeRateUnit.PascalPerSecond) => new PressureChangeRate((_value) * 1e3d, PressureChangeRateUnit.PascalPerSecond), - (PressureChangeRateUnit.KilopoundForcePerSquareInchPerMinute, PressureChangeRateUnit.PascalPerSecond) => new PressureChangeRate((_value * 6.894757293168361e3 / 60) * 1e3d, PressureChangeRateUnit.PascalPerSecond), - (PressureChangeRateUnit.KilopoundForcePerSquareInchPerSecond, PressureChangeRateUnit.PascalPerSecond) => new PressureChangeRate((_value * 6.894757293168361e3) * 1e3d, PressureChangeRateUnit.PascalPerSecond), + (PressureChangeRateUnit.KilopoundForcePerSquareInchPerMinute, PressureChangeRateUnit.PascalPerSecond) => new PressureChangeRate((_value * (4.4482216152605 / 0.00064516) / 60) * 1e3d, PressureChangeRateUnit.PascalPerSecond), + (PressureChangeRateUnit.KilopoundForcePerSquareInchPerSecond, PressureChangeRateUnit.PascalPerSecond) => new PressureChangeRate((_value * 4.4482216152605 / 0.00064516) * 1e3d, PressureChangeRateUnit.PascalPerSecond), (PressureChangeRateUnit.MegapascalPerMinute, PressureChangeRateUnit.PascalPerSecond) => new PressureChangeRate((_value / 60) * 1e6d, PressureChangeRateUnit.PascalPerSecond), (PressureChangeRateUnit.MegapascalPerSecond, PressureChangeRateUnit.PascalPerSecond) => new PressureChangeRate((_value) * 1e6d, PressureChangeRateUnit.PascalPerSecond), - (PressureChangeRateUnit.MegapoundForcePerSquareInchPerMinute, PressureChangeRateUnit.PascalPerSecond) => new PressureChangeRate((_value * 6.894757293168361e3 / 60) * 1e6d, PressureChangeRateUnit.PascalPerSecond), - (PressureChangeRateUnit.MegapoundForcePerSquareInchPerSecond, PressureChangeRateUnit.PascalPerSecond) => new PressureChangeRate((_value * 6.894757293168361e3) * 1e6d, PressureChangeRateUnit.PascalPerSecond), + (PressureChangeRateUnit.MegapoundForcePerSquareInchPerMinute, PressureChangeRateUnit.PascalPerSecond) => new PressureChangeRate((_value * (4.4482216152605 / 0.00064516) / 60) * 1e6d, PressureChangeRateUnit.PascalPerSecond), + (PressureChangeRateUnit.MegapoundForcePerSquareInchPerSecond, PressureChangeRateUnit.PascalPerSecond) => new PressureChangeRate((_value * 4.4482216152605 / 0.00064516) * 1e6d, PressureChangeRateUnit.PascalPerSecond), (PressureChangeRateUnit.MillibarPerMinute, PressureChangeRateUnit.PascalPerSecond) => new PressureChangeRate((_value * 1e5 / 60) * 1e-3d, PressureChangeRateUnit.PascalPerSecond), (PressureChangeRateUnit.MillibarPerSecond, PressureChangeRateUnit.PascalPerSecond) => new PressureChangeRate((_value * 1e5) * 1e-3d, PressureChangeRateUnit.PascalPerSecond), - (PressureChangeRateUnit.MillimeterOfMercuryPerSecond, PressureChangeRateUnit.PascalPerSecond) => new PressureChangeRate(_value * 133.322, PressureChangeRateUnit.PascalPerSecond), + (PressureChangeRateUnit.MillimeterOfMercuryPerSecond, PressureChangeRateUnit.PascalPerSecond) => new PressureChangeRate(_value * 133.322387415, PressureChangeRateUnit.PascalPerSecond), (PressureChangeRateUnit.PascalPerMinute, PressureChangeRateUnit.PascalPerSecond) => new PressureChangeRate(_value / 60, PressureChangeRateUnit.PascalPerSecond), - (PressureChangeRateUnit.PoundForcePerSquareInchPerMinute, PressureChangeRateUnit.PascalPerSecond) => new PressureChangeRate(_value * 6.894757293168361e3 / 60, PressureChangeRateUnit.PascalPerSecond), - (PressureChangeRateUnit.PoundForcePerSquareInchPerSecond, PressureChangeRateUnit.PascalPerSecond) => new PressureChangeRate(_value * 6.894757293168361e3, PressureChangeRateUnit.PascalPerSecond), + (PressureChangeRateUnit.PoundForcePerSquareInchPerMinute, PressureChangeRateUnit.PascalPerSecond) => new PressureChangeRate(_value * (4.4482216152605 / 0.00064516) / 60, PressureChangeRateUnit.PascalPerSecond), + (PressureChangeRateUnit.PoundForcePerSquareInchPerSecond, PressureChangeRateUnit.PascalPerSecond) => new PressureChangeRate(_value * 4.4482216152605 / 0.00064516, PressureChangeRateUnit.PascalPerSecond), // BaseUnit -> PressureChangeRateUnit (PressureChangeRateUnit.PascalPerSecond, PressureChangeRateUnit.AtmospherePerSecond) => new PressureChangeRate(_value / (1.01325 * 1e5), PressureChangeRateUnit.AtmospherePerSecond), @@ -1002,18 +1002,18 @@ private bool TryToUnit(PressureChangeRateUnit unit, [NotNullWhen(true)] out Pres (PressureChangeRateUnit.PascalPerSecond, PressureChangeRateUnit.BarPerSecond) => new PressureChangeRate(_value / 1e5, PressureChangeRateUnit.BarPerSecond), (PressureChangeRateUnit.PascalPerSecond, PressureChangeRateUnit.KilopascalPerMinute) => new PressureChangeRate((_value * 60) / 1e3d, PressureChangeRateUnit.KilopascalPerMinute), (PressureChangeRateUnit.PascalPerSecond, PressureChangeRateUnit.KilopascalPerSecond) => new PressureChangeRate((_value) / 1e3d, PressureChangeRateUnit.KilopascalPerSecond), - (PressureChangeRateUnit.PascalPerSecond, PressureChangeRateUnit.KilopoundForcePerSquareInchPerMinute) => new PressureChangeRate((_value / 6.894757293168361e3 * 60) / 1e3d, PressureChangeRateUnit.KilopoundForcePerSquareInchPerMinute), - (PressureChangeRateUnit.PascalPerSecond, PressureChangeRateUnit.KilopoundForcePerSquareInchPerSecond) => new PressureChangeRate((_value / 6.894757293168361e3) / 1e3d, PressureChangeRateUnit.KilopoundForcePerSquareInchPerSecond), + (PressureChangeRateUnit.PascalPerSecond, PressureChangeRateUnit.KilopoundForcePerSquareInchPerMinute) => new PressureChangeRate((_value * 60 / (4.4482216152605 / 0.00064516)) / 1e3d, PressureChangeRateUnit.KilopoundForcePerSquareInchPerMinute), + (PressureChangeRateUnit.PascalPerSecond, PressureChangeRateUnit.KilopoundForcePerSquareInchPerSecond) => new PressureChangeRate((_value * 0.00064516 / 4.4482216152605) / 1e3d, PressureChangeRateUnit.KilopoundForcePerSquareInchPerSecond), (PressureChangeRateUnit.PascalPerSecond, PressureChangeRateUnit.MegapascalPerMinute) => new PressureChangeRate((_value * 60) / 1e6d, PressureChangeRateUnit.MegapascalPerMinute), (PressureChangeRateUnit.PascalPerSecond, PressureChangeRateUnit.MegapascalPerSecond) => new PressureChangeRate((_value) / 1e6d, PressureChangeRateUnit.MegapascalPerSecond), - (PressureChangeRateUnit.PascalPerSecond, PressureChangeRateUnit.MegapoundForcePerSquareInchPerMinute) => new PressureChangeRate((_value / 6.894757293168361e3 * 60) / 1e6d, PressureChangeRateUnit.MegapoundForcePerSquareInchPerMinute), - (PressureChangeRateUnit.PascalPerSecond, PressureChangeRateUnit.MegapoundForcePerSquareInchPerSecond) => new PressureChangeRate((_value / 6.894757293168361e3) / 1e6d, PressureChangeRateUnit.MegapoundForcePerSquareInchPerSecond), + (PressureChangeRateUnit.PascalPerSecond, PressureChangeRateUnit.MegapoundForcePerSquareInchPerMinute) => new PressureChangeRate((_value * 60 / (4.4482216152605 / 0.00064516)) / 1e6d, PressureChangeRateUnit.MegapoundForcePerSquareInchPerMinute), + (PressureChangeRateUnit.PascalPerSecond, PressureChangeRateUnit.MegapoundForcePerSquareInchPerSecond) => new PressureChangeRate((_value * 0.00064516 / 4.4482216152605) / 1e6d, PressureChangeRateUnit.MegapoundForcePerSquareInchPerSecond), (PressureChangeRateUnit.PascalPerSecond, PressureChangeRateUnit.MillibarPerMinute) => new PressureChangeRate((_value / 1e5 * 60) / 1e-3d, PressureChangeRateUnit.MillibarPerMinute), (PressureChangeRateUnit.PascalPerSecond, PressureChangeRateUnit.MillibarPerSecond) => new PressureChangeRate((_value / 1e5) / 1e-3d, PressureChangeRateUnit.MillibarPerSecond), - (PressureChangeRateUnit.PascalPerSecond, PressureChangeRateUnit.MillimeterOfMercuryPerSecond) => new PressureChangeRate(_value / 133.322, PressureChangeRateUnit.MillimeterOfMercuryPerSecond), + (PressureChangeRateUnit.PascalPerSecond, PressureChangeRateUnit.MillimeterOfMercuryPerSecond) => new PressureChangeRate(_value / 133.322387415, PressureChangeRateUnit.MillimeterOfMercuryPerSecond), (PressureChangeRateUnit.PascalPerSecond, PressureChangeRateUnit.PascalPerMinute) => new PressureChangeRate(_value * 60, PressureChangeRateUnit.PascalPerMinute), - (PressureChangeRateUnit.PascalPerSecond, PressureChangeRateUnit.PoundForcePerSquareInchPerMinute) => new PressureChangeRate(_value / 6.894757293168361e3 * 60, PressureChangeRateUnit.PoundForcePerSquareInchPerMinute), - (PressureChangeRateUnit.PascalPerSecond, PressureChangeRateUnit.PoundForcePerSquareInchPerSecond) => new PressureChangeRate(_value / 6.894757293168361e3, PressureChangeRateUnit.PoundForcePerSquareInchPerSecond), + (PressureChangeRateUnit.PascalPerSecond, PressureChangeRateUnit.PoundForcePerSquareInchPerMinute) => new PressureChangeRate(_value * 60 / (4.4482216152605 / 0.00064516), PressureChangeRateUnit.PoundForcePerSquareInchPerMinute), + (PressureChangeRateUnit.PascalPerSecond, PressureChangeRateUnit.PoundForcePerSquareInchPerSecond) => new PressureChangeRate(_value * 0.00064516 / 4.4482216152605, PressureChangeRateUnit.PoundForcePerSquareInchPerSecond), _ => null }; diff --git a/UnitsNet/GeneratedCode/Quantities/ReciprocalArea.g.cs b/UnitsNet/GeneratedCode/Quantities/ReciprocalArea.g.cs index 6ec194d1be..bf136ebdf1 100644 --- a/UnitsNet/GeneratedCode/Quantities/ReciprocalArea.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ReciprocalArea.g.cs @@ -906,26 +906,26 @@ private bool TryToUnit(ReciprocalAreaUnit unit, [NotNullWhen(true)] out Reciproc // ReciprocalAreaUnit -> BaseUnit (ReciprocalAreaUnit.InverseSquareCentimeter, ReciprocalAreaUnit.InverseSquareMeter) => new ReciprocalArea(_value / 1e-4, ReciprocalAreaUnit.InverseSquareMeter), (ReciprocalAreaUnit.InverseSquareDecimeter, ReciprocalAreaUnit.InverseSquareMeter) => new ReciprocalArea(_value / 1e-2, ReciprocalAreaUnit.InverseSquareMeter), - (ReciprocalAreaUnit.InverseSquareFoot, ReciprocalAreaUnit.InverseSquareMeter) => new ReciprocalArea(_value / 0.092903, ReciprocalAreaUnit.InverseSquareMeter), + (ReciprocalAreaUnit.InverseSquareFoot, ReciprocalAreaUnit.InverseSquareMeter) => new ReciprocalArea(_value / 9.290304e-2, ReciprocalAreaUnit.InverseSquareMeter), (ReciprocalAreaUnit.InverseSquareInch, ReciprocalAreaUnit.InverseSquareMeter) => new ReciprocalArea(_value / 0.00064516, ReciprocalAreaUnit.InverseSquareMeter), (ReciprocalAreaUnit.InverseSquareKilometer, ReciprocalAreaUnit.InverseSquareMeter) => new ReciprocalArea(_value / 1e6, ReciprocalAreaUnit.InverseSquareMeter), (ReciprocalAreaUnit.InverseSquareMicrometer, ReciprocalAreaUnit.InverseSquareMeter) => new ReciprocalArea(_value / 1e-12, ReciprocalAreaUnit.InverseSquareMeter), - (ReciprocalAreaUnit.InverseSquareMile, ReciprocalAreaUnit.InverseSquareMeter) => new ReciprocalArea(_value / 2.59e6, ReciprocalAreaUnit.InverseSquareMeter), + (ReciprocalAreaUnit.InverseSquareMile, ReciprocalAreaUnit.InverseSquareMeter) => new ReciprocalArea(_value / (1609.344 * 1609.344), ReciprocalAreaUnit.InverseSquareMeter), (ReciprocalAreaUnit.InverseSquareMillimeter, ReciprocalAreaUnit.InverseSquareMeter) => new ReciprocalArea(_value / 1e-6, ReciprocalAreaUnit.InverseSquareMeter), - (ReciprocalAreaUnit.InverseSquareYard, ReciprocalAreaUnit.InverseSquareMeter) => new ReciprocalArea(_value / 0.836127, ReciprocalAreaUnit.InverseSquareMeter), - (ReciprocalAreaUnit.InverseUsSurveySquareFoot, ReciprocalAreaUnit.InverseSquareMeter) => new ReciprocalArea(_value / 0.09290341161, ReciprocalAreaUnit.InverseSquareMeter), + (ReciprocalAreaUnit.InverseSquareYard, ReciprocalAreaUnit.InverseSquareMeter) => new ReciprocalArea(_value / (0.9144 * 0.9144), ReciprocalAreaUnit.InverseSquareMeter), + (ReciprocalAreaUnit.InverseUsSurveySquareFoot, ReciprocalAreaUnit.InverseSquareMeter) => new ReciprocalArea(_value / (1200.0 / 3937.0) / (1200.0 / 3937.0), ReciprocalAreaUnit.InverseSquareMeter), // BaseUnit -> ReciprocalAreaUnit (ReciprocalAreaUnit.InverseSquareMeter, ReciprocalAreaUnit.InverseSquareCentimeter) => new ReciprocalArea(_value * 1e-4, ReciprocalAreaUnit.InverseSquareCentimeter), (ReciprocalAreaUnit.InverseSquareMeter, ReciprocalAreaUnit.InverseSquareDecimeter) => new ReciprocalArea(_value * 1e-2, ReciprocalAreaUnit.InverseSquareDecimeter), - (ReciprocalAreaUnit.InverseSquareMeter, ReciprocalAreaUnit.InverseSquareFoot) => new ReciprocalArea(_value * 0.092903, ReciprocalAreaUnit.InverseSquareFoot), + (ReciprocalAreaUnit.InverseSquareMeter, ReciprocalAreaUnit.InverseSquareFoot) => new ReciprocalArea(_value * 9.290304e-2, ReciprocalAreaUnit.InverseSquareFoot), (ReciprocalAreaUnit.InverseSquareMeter, ReciprocalAreaUnit.InverseSquareInch) => new ReciprocalArea(_value * 0.00064516, ReciprocalAreaUnit.InverseSquareInch), (ReciprocalAreaUnit.InverseSquareMeter, ReciprocalAreaUnit.InverseSquareKilometer) => new ReciprocalArea(_value * 1e6, ReciprocalAreaUnit.InverseSquareKilometer), (ReciprocalAreaUnit.InverseSquareMeter, ReciprocalAreaUnit.InverseSquareMicrometer) => new ReciprocalArea(_value * 1e-12, ReciprocalAreaUnit.InverseSquareMicrometer), - (ReciprocalAreaUnit.InverseSquareMeter, ReciprocalAreaUnit.InverseSquareMile) => new ReciprocalArea(_value * 2.59e6, ReciprocalAreaUnit.InverseSquareMile), + (ReciprocalAreaUnit.InverseSquareMeter, ReciprocalAreaUnit.InverseSquareMile) => new ReciprocalArea(_value * (1609.344 * 1609.344), ReciprocalAreaUnit.InverseSquareMile), (ReciprocalAreaUnit.InverseSquareMeter, ReciprocalAreaUnit.InverseSquareMillimeter) => new ReciprocalArea(_value * 1e-6, ReciprocalAreaUnit.InverseSquareMillimeter), - (ReciprocalAreaUnit.InverseSquareMeter, ReciprocalAreaUnit.InverseSquareYard) => new ReciprocalArea(_value * 0.836127, ReciprocalAreaUnit.InverseSquareYard), - (ReciprocalAreaUnit.InverseSquareMeter, ReciprocalAreaUnit.InverseUsSurveySquareFoot) => new ReciprocalArea(_value * 0.09290341161, ReciprocalAreaUnit.InverseUsSurveySquareFoot), + (ReciprocalAreaUnit.InverseSquareMeter, ReciprocalAreaUnit.InverseSquareYard) => new ReciprocalArea(_value * (0.9144 * 0.9144), ReciprocalAreaUnit.InverseSquareYard), + (ReciprocalAreaUnit.InverseSquareMeter, ReciprocalAreaUnit.InverseUsSurveySquareFoot) => new ReciprocalArea(_value * (1200.0 / 3937.0) * (1200.0 / 3937.0), ReciprocalAreaUnit.InverseUsSurveySquareFoot), _ => null }; diff --git a/UnitsNet/GeneratedCode/Quantities/RotationalSpeed.g.cs b/UnitsNet/GeneratedCode/Quantities/RotationalSpeed.g.cs index f9da7d6283..f4f8770ec3 100644 --- a/UnitsNet/GeneratedCode/Quantities/RotationalSpeed.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RotationalSpeed.g.cs @@ -915,8 +915,8 @@ private bool TryToUnit(RotationalSpeedUnit unit, [NotNullWhen(true)] out Rotatio (RotationalSpeedUnit.MilliradianPerSecond, RotationalSpeedUnit.RadianPerSecond) => new RotationalSpeed((_value) * 1e-3d, RotationalSpeedUnit.RadianPerSecond), (RotationalSpeedUnit.NanodegreePerSecond, RotationalSpeedUnit.RadianPerSecond) => new RotationalSpeed(((Math.PI / 180) * _value) * 1e-9d, RotationalSpeedUnit.RadianPerSecond), (RotationalSpeedUnit.NanoradianPerSecond, RotationalSpeedUnit.RadianPerSecond) => new RotationalSpeed((_value) * 1e-9d, RotationalSpeedUnit.RadianPerSecond), - (RotationalSpeedUnit.RevolutionPerMinute, RotationalSpeedUnit.RadianPerSecond) => new RotationalSpeed((_value * 6.2831853072) / 60, RotationalSpeedUnit.RadianPerSecond), - (RotationalSpeedUnit.RevolutionPerSecond, RotationalSpeedUnit.RadianPerSecond) => new RotationalSpeed(_value * 6.2831853072, RotationalSpeedUnit.RadianPerSecond), + (RotationalSpeedUnit.RevolutionPerMinute, RotationalSpeedUnit.RadianPerSecond) => new RotationalSpeed((_value * 2 * Math.PI) / 60, RotationalSpeedUnit.RadianPerSecond), + (RotationalSpeedUnit.RevolutionPerSecond, RotationalSpeedUnit.RadianPerSecond) => new RotationalSpeed(_value * 2 * Math.PI, RotationalSpeedUnit.RadianPerSecond), // BaseUnit -> RotationalSpeedUnit (RotationalSpeedUnit.RadianPerSecond, RotationalSpeedUnit.CentiradianPerSecond) => new RotationalSpeed((_value) / 1e-2d, RotationalSpeedUnit.CentiradianPerSecond), @@ -929,8 +929,8 @@ private bool TryToUnit(RotationalSpeedUnit unit, [NotNullWhen(true)] out Rotatio (RotationalSpeedUnit.RadianPerSecond, RotationalSpeedUnit.MilliradianPerSecond) => new RotationalSpeed((_value) / 1e-3d, RotationalSpeedUnit.MilliradianPerSecond), (RotationalSpeedUnit.RadianPerSecond, RotationalSpeedUnit.NanodegreePerSecond) => new RotationalSpeed(((180 / Math.PI) * _value) / 1e-9d, RotationalSpeedUnit.NanodegreePerSecond), (RotationalSpeedUnit.RadianPerSecond, RotationalSpeedUnit.NanoradianPerSecond) => new RotationalSpeed((_value) / 1e-9d, RotationalSpeedUnit.NanoradianPerSecond), - (RotationalSpeedUnit.RadianPerSecond, RotationalSpeedUnit.RevolutionPerMinute) => new RotationalSpeed((_value / 6.2831853072) * 60, RotationalSpeedUnit.RevolutionPerMinute), - (RotationalSpeedUnit.RadianPerSecond, RotationalSpeedUnit.RevolutionPerSecond) => new RotationalSpeed(_value / 6.2831853072, RotationalSpeedUnit.RevolutionPerSecond), + (RotationalSpeedUnit.RadianPerSecond, RotationalSpeedUnit.RevolutionPerMinute) => new RotationalSpeed((_value / (2 * Math.PI)) * 60, RotationalSpeedUnit.RevolutionPerMinute), + (RotationalSpeedUnit.RadianPerSecond, RotationalSpeedUnit.RevolutionPerSecond) => new RotationalSpeed(_value / (2 * Math.PI), RotationalSpeedUnit.RevolutionPerSecond), _ => null }; diff --git a/UnitsNet/GeneratedCode/Quantities/RotationalStiffness.g.cs b/UnitsNet/GeneratedCode/Quantities/RotationalStiffness.g.cs index 7a9e030be5..0eae98fef1 100644 --- a/UnitsNet/GeneratedCode/Quantities/RotationalStiffness.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RotationalStiffness.g.cs @@ -1245,7 +1245,7 @@ private bool TryToUnit(RotationalStiffnessUnit unit, [NotNullWhen(true)] out Rot (RotationalStiffnessUnit.KilonewtonMeterPerRadian, RotationalStiffnessUnit.NewtonMeterPerRadian) => new RotationalStiffness((_value) * 1e3d, RotationalStiffnessUnit.NewtonMeterPerRadian), (RotationalStiffnessUnit.KilonewtonMillimeterPerDegree, RotationalStiffnessUnit.NewtonMeterPerRadian) => new RotationalStiffness((_value * 180 / Math.PI * 0.001) * 1e3d, RotationalStiffnessUnit.NewtonMeterPerRadian), (RotationalStiffnessUnit.KilonewtonMillimeterPerRadian, RotationalStiffnessUnit.NewtonMeterPerRadian) => new RotationalStiffness((_value * 0.001) * 1e3d, RotationalStiffnessUnit.NewtonMeterPerRadian), - (RotationalStiffnessUnit.KilopoundForceFootPerDegrees, RotationalStiffnessUnit.NewtonMeterPerRadian) => new RotationalStiffness(_value * 77682.6, RotationalStiffnessUnit.NewtonMeterPerRadian), + (RotationalStiffnessUnit.KilopoundForceFootPerDegrees, RotationalStiffnessUnit.NewtonMeterPerRadian) => new RotationalStiffness(_value * (4.4482216152605e3 * 0.3048 * 180 / Math.PI), RotationalStiffnessUnit.NewtonMeterPerRadian), (RotationalStiffnessUnit.MeganewtonMeterPerDegree, RotationalStiffnessUnit.NewtonMeterPerRadian) => new RotationalStiffness((_value * (180 / Math.PI)) * 1e6d, RotationalStiffnessUnit.NewtonMeterPerRadian), (RotationalStiffnessUnit.MeganewtonMeterPerRadian, RotationalStiffnessUnit.NewtonMeterPerRadian) => new RotationalStiffness((_value) * 1e6d, RotationalStiffnessUnit.NewtonMeterPerRadian), (RotationalStiffnessUnit.MeganewtonMillimeterPerDegree, RotationalStiffnessUnit.NewtonMeterPerRadian) => new RotationalStiffness((_value * 180 / Math.PI * 0.001) * 1e6d, RotationalStiffnessUnit.NewtonMeterPerRadian), @@ -1262,8 +1262,8 @@ private bool TryToUnit(RotationalStiffnessUnit unit, [NotNullWhen(true)] out Rot (RotationalStiffnessUnit.NewtonMeterPerDegree, RotationalStiffnessUnit.NewtonMeterPerRadian) => new RotationalStiffness(_value * (180 / Math.PI), RotationalStiffnessUnit.NewtonMeterPerRadian), (RotationalStiffnessUnit.NewtonMillimeterPerDegree, RotationalStiffnessUnit.NewtonMeterPerRadian) => new RotationalStiffness(_value * 180 / Math.PI * 0.001, RotationalStiffnessUnit.NewtonMeterPerRadian), (RotationalStiffnessUnit.NewtonMillimeterPerRadian, RotationalStiffnessUnit.NewtonMeterPerRadian) => new RotationalStiffness(_value * 0.001, RotationalStiffnessUnit.NewtonMeterPerRadian), - (RotationalStiffnessUnit.PoundForceFeetPerRadian, RotationalStiffnessUnit.NewtonMeterPerRadian) => new RotationalStiffness(_value * 1.3558179483314, RotationalStiffnessUnit.NewtonMeterPerRadian), - (RotationalStiffnessUnit.PoundForceFootPerDegrees, RotationalStiffnessUnit.NewtonMeterPerRadian) => new RotationalStiffness(_value * 77.6826, RotationalStiffnessUnit.NewtonMeterPerRadian), + (RotationalStiffnessUnit.PoundForceFeetPerRadian, RotationalStiffnessUnit.NewtonMeterPerRadian) => new RotationalStiffness(_value * 4.4482216152605 * 0.3048, RotationalStiffnessUnit.NewtonMeterPerRadian), + (RotationalStiffnessUnit.PoundForceFootPerDegrees, RotationalStiffnessUnit.NewtonMeterPerRadian) => new RotationalStiffness(_value * (4.4482216152605 * 0.3048 * 180 / Math.PI), RotationalStiffnessUnit.NewtonMeterPerRadian), // BaseUnit -> RotationalStiffnessUnit (RotationalStiffnessUnit.NewtonMeterPerRadian, RotationalStiffnessUnit.CentinewtonMeterPerDegree) => new RotationalStiffness((_value / (180 / Math.PI)) / 1e-2d, RotationalStiffnessUnit.CentinewtonMeterPerDegree), @@ -1279,7 +1279,7 @@ private bool TryToUnit(RotationalStiffnessUnit unit, [NotNullWhen(true)] out Rot (RotationalStiffnessUnit.NewtonMeterPerRadian, RotationalStiffnessUnit.KilonewtonMeterPerRadian) => new RotationalStiffness((_value) / 1e3d, RotationalStiffnessUnit.KilonewtonMeterPerRadian), (RotationalStiffnessUnit.NewtonMeterPerRadian, RotationalStiffnessUnit.KilonewtonMillimeterPerDegree) => new RotationalStiffness((_value / 180 * Math.PI * 1000) / 1e3d, RotationalStiffnessUnit.KilonewtonMillimeterPerDegree), (RotationalStiffnessUnit.NewtonMeterPerRadian, RotationalStiffnessUnit.KilonewtonMillimeterPerRadian) => new RotationalStiffness((_value * 1000) / 1e3d, RotationalStiffnessUnit.KilonewtonMillimeterPerRadian), - (RotationalStiffnessUnit.NewtonMeterPerRadian, RotationalStiffnessUnit.KilopoundForceFootPerDegrees) => new RotationalStiffness(_value / 77682.6, RotationalStiffnessUnit.KilopoundForceFootPerDegrees), + (RotationalStiffnessUnit.NewtonMeterPerRadian, RotationalStiffnessUnit.KilopoundForceFootPerDegrees) => new RotationalStiffness(_value / (4.4482216152605e3 * 0.3048 * 180 / Math.PI), RotationalStiffnessUnit.KilopoundForceFootPerDegrees), (RotationalStiffnessUnit.NewtonMeterPerRadian, RotationalStiffnessUnit.MeganewtonMeterPerDegree) => new RotationalStiffness((_value / (180 / Math.PI)) / 1e6d, RotationalStiffnessUnit.MeganewtonMeterPerDegree), (RotationalStiffnessUnit.NewtonMeterPerRadian, RotationalStiffnessUnit.MeganewtonMeterPerRadian) => new RotationalStiffness((_value) / 1e6d, RotationalStiffnessUnit.MeganewtonMeterPerRadian), (RotationalStiffnessUnit.NewtonMeterPerRadian, RotationalStiffnessUnit.MeganewtonMillimeterPerDegree) => new RotationalStiffness((_value / 180 * Math.PI * 1000) / 1e6d, RotationalStiffnessUnit.MeganewtonMillimeterPerDegree), @@ -1296,8 +1296,8 @@ private bool TryToUnit(RotationalStiffnessUnit unit, [NotNullWhen(true)] out Rot (RotationalStiffnessUnit.NewtonMeterPerRadian, RotationalStiffnessUnit.NewtonMeterPerDegree) => new RotationalStiffness(_value / (180 / Math.PI), RotationalStiffnessUnit.NewtonMeterPerDegree), (RotationalStiffnessUnit.NewtonMeterPerRadian, RotationalStiffnessUnit.NewtonMillimeterPerDegree) => new RotationalStiffness(_value / 180 * Math.PI * 1000, RotationalStiffnessUnit.NewtonMillimeterPerDegree), (RotationalStiffnessUnit.NewtonMeterPerRadian, RotationalStiffnessUnit.NewtonMillimeterPerRadian) => new RotationalStiffness(_value * 1000, RotationalStiffnessUnit.NewtonMillimeterPerRadian), - (RotationalStiffnessUnit.NewtonMeterPerRadian, RotationalStiffnessUnit.PoundForceFeetPerRadian) => new RotationalStiffness(_value / 1.3558179483314, RotationalStiffnessUnit.PoundForceFeetPerRadian), - (RotationalStiffnessUnit.NewtonMeterPerRadian, RotationalStiffnessUnit.PoundForceFootPerDegrees) => new RotationalStiffness(_value / 77.6826, RotationalStiffnessUnit.PoundForceFootPerDegrees), + (RotationalStiffnessUnit.NewtonMeterPerRadian, RotationalStiffnessUnit.PoundForceFeetPerRadian) => new RotationalStiffness(_value / (4.4482216152605 * 0.3048), RotationalStiffnessUnit.PoundForceFeetPerRadian), + (RotationalStiffnessUnit.NewtonMeterPerRadian, RotationalStiffnessUnit.PoundForceFootPerDegrees) => new RotationalStiffness(_value / (4.4482216152605 * 0.3048 * 180 / Math.PI), RotationalStiffnessUnit.PoundForceFootPerDegrees), _ => null }; diff --git a/UnitsNet/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs b/UnitsNet/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs index d246739cc1..47df1e4037 100644 --- a/UnitsNet/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/RotationalStiffnessPerLength.g.cs @@ -771,15 +771,15 @@ private bool TryToUnit(RotationalStiffnessPerLengthUnit unit, [NotNullWhen(true) { // RotationalStiffnessPerLengthUnit -> BaseUnit (RotationalStiffnessPerLengthUnit.KilonewtonMeterPerRadianPerMeter, RotationalStiffnessPerLengthUnit.NewtonMeterPerRadianPerMeter) => new RotationalStiffnessPerLength((_value) * 1e3d, RotationalStiffnessPerLengthUnit.NewtonMeterPerRadianPerMeter), - (RotationalStiffnessPerLengthUnit.KilopoundForceFootPerDegreesPerFoot, RotationalStiffnessPerLengthUnit.NewtonMeterPerRadianPerMeter) => new RotationalStiffnessPerLength(_value * 254864.324570, RotationalStiffnessPerLengthUnit.NewtonMeterPerRadianPerMeter), + (RotationalStiffnessPerLengthUnit.KilopoundForceFootPerDegreesPerFoot, RotationalStiffnessPerLengthUnit.NewtonMeterPerRadianPerMeter) => new RotationalStiffnessPerLength(_value * (4.4482216152605e3 * 180 / Math.PI), RotationalStiffnessPerLengthUnit.NewtonMeterPerRadianPerMeter), (RotationalStiffnessPerLengthUnit.MeganewtonMeterPerRadianPerMeter, RotationalStiffnessPerLengthUnit.NewtonMeterPerRadianPerMeter) => new RotationalStiffnessPerLength((_value) * 1e6d, RotationalStiffnessPerLengthUnit.NewtonMeterPerRadianPerMeter), - (RotationalStiffnessPerLengthUnit.PoundForceFootPerDegreesPerFoot, RotationalStiffnessPerLengthUnit.NewtonMeterPerRadianPerMeter) => new RotationalStiffnessPerLength(_value * 254.864324570, RotationalStiffnessPerLengthUnit.NewtonMeterPerRadianPerMeter), + (RotationalStiffnessPerLengthUnit.PoundForceFootPerDegreesPerFoot, RotationalStiffnessPerLengthUnit.NewtonMeterPerRadianPerMeter) => new RotationalStiffnessPerLength(_value * (4.4482216152605 * 180 / Math.PI), RotationalStiffnessPerLengthUnit.NewtonMeterPerRadianPerMeter), // BaseUnit -> RotationalStiffnessPerLengthUnit (RotationalStiffnessPerLengthUnit.NewtonMeterPerRadianPerMeter, RotationalStiffnessPerLengthUnit.KilonewtonMeterPerRadianPerMeter) => new RotationalStiffnessPerLength((_value) / 1e3d, RotationalStiffnessPerLengthUnit.KilonewtonMeterPerRadianPerMeter), - (RotationalStiffnessPerLengthUnit.NewtonMeterPerRadianPerMeter, RotationalStiffnessPerLengthUnit.KilopoundForceFootPerDegreesPerFoot) => new RotationalStiffnessPerLength(_value / 254864.324570, RotationalStiffnessPerLengthUnit.KilopoundForceFootPerDegreesPerFoot), + (RotationalStiffnessPerLengthUnit.NewtonMeterPerRadianPerMeter, RotationalStiffnessPerLengthUnit.KilopoundForceFootPerDegreesPerFoot) => new RotationalStiffnessPerLength(_value / (4.4482216152605e3 * 180 / Math.PI), RotationalStiffnessPerLengthUnit.KilopoundForceFootPerDegreesPerFoot), (RotationalStiffnessPerLengthUnit.NewtonMeterPerRadianPerMeter, RotationalStiffnessPerLengthUnit.MeganewtonMeterPerRadianPerMeter) => new RotationalStiffnessPerLength((_value) / 1e6d, RotationalStiffnessPerLengthUnit.MeganewtonMeterPerRadianPerMeter), - (RotationalStiffnessPerLengthUnit.NewtonMeterPerRadianPerMeter, RotationalStiffnessPerLengthUnit.PoundForceFootPerDegreesPerFoot) => new RotationalStiffnessPerLength(_value / 254.864324570, RotationalStiffnessPerLengthUnit.PoundForceFootPerDegreesPerFoot), + (RotationalStiffnessPerLengthUnit.NewtonMeterPerRadianPerMeter, RotationalStiffnessPerLengthUnit.PoundForceFootPerDegreesPerFoot) => new RotationalStiffnessPerLength(_value / (4.4482216152605 * 180 / Math.PI), RotationalStiffnessPerLengthUnit.PoundForceFootPerDegreesPerFoot), _ => null }; diff --git a/UnitsNet/GeneratedCode/Quantities/SpecificEnergy.g.cs b/UnitsNet/GeneratedCode/Quantities/SpecificEnergy.g.cs index 1052f30706..11780f7631 100644 --- a/UnitsNet/GeneratedCode/Quantities/SpecificEnergy.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/SpecificEnergy.g.cs @@ -1214,7 +1214,7 @@ private bool TryToUnit(SpecificEnergyUnit unit, [NotNullWhen(true)] out Specific SpecificEnergy? convertedOrNull = (Unit, unit) switch { // SpecificEnergyUnit -> BaseUnit - (SpecificEnergyUnit.BtuPerPound, SpecificEnergyUnit.JoulePerKilogram) => new SpecificEnergy(_value * 2326.000075362, SpecificEnergyUnit.JoulePerKilogram), + (SpecificEnergyUnit.BtuPerPound, SpecificEnergyUnit.JoulePerKilogram) => new SpecificEnergy(_value * 1055.05585262 / 0.45359237, SpecificEnergyUnit.JoulePerKilogram), (SpecificEnergyUnit.CaloriePerGram, SpecificEnergyUnit.JoulePerKilogram) => new SpecificEnergy(_value * 4.184e3, SpecificEnergyUnit.JoulePerKilogram), (SpecificEnergyUnit.GigawattDayPerKilogram, SpecificEnergyUnit.JoulePerKilogram) => new SpecificEnergy((_value * (24 * 3.6e3)) * 1e9d, SpecificEnergyUnit.JoulePerKilogram), (SpecificEnergyUnit.GigawattDayPerShortTon, SpecificEnergyUnit.JoulePerKilogram) => new SpecificEnergy((_value * ((24 * 3.6e3) / 9.0718474e2)) * 1e9d, SpecificEnergyUnit.JoulePerKilogram), @@ -1245,7 +1245,7 @@ private bool TryToUnit(SpecificEnergyUnit unit, [NotNullWhen(true)] out Specific (SpecificEnergyUnit.WattHourPerPound, SpecificEnergyUnit.JoulePerKilogram) => new SpecificEnergy(_value * 7.93664e3, SpecificEnergyUnit.JoulePerKilogram), // BaseUnit -> SpecificEnergyUnit - (SpecificEnergyUnit.JoulePerKilogram, SpecificEnergyUnit.BtuPerPound) => new SpecificEnergy(_value / 2326.000075362, SpecificEnergyUnit.BtuPerPound), + (SpecificEnergyUnit.JoulePerKilogram, SpecificEnergyUnit.BtuPerPound) => new SpecificEnergy(_value * 0.45359237 / 1055.05585262, SpecificEnergyUnit.BtuPerPound), (SpecificEnergyUnit.JoulePerKilogram, SpecificEnergyUnit.CaloriePerGram) => new SpecificEnergy(_value / 4.184e3, SpecificEnergyUnit.CaloriePerGram), (SpecificEnergyUnit.JoulePerKilogram, SpecificEnergyUnit.GigawattDayPerKilogram) => new SpecificEnergy((_value / (24 * 3.6e3)) / 1e9d, SpecificEnergyUnit.GigawattDayPerKilogram), (SpecificEnergyUnit.JoulePerKilogram, SpecificEnergyUnit.GigawattDayPerShortTon) => new SpecificEnergy((_value / ((24 * 3.6e3) / 9.0718474e2)) / 1e9d, SpecificEnergyUnit.GigawattDayPerShortTon), diff --git a/UnitsNet/GeneratedCode/Quantities/SpecificVolume.g.cs b/UnitsNet/GeneratedCode/Quantities/SpecificVolume.g.cs index 054b159577..5fc167ef8b 100644 --- a/UnitsNet/GeneratedCode/Quantities/SpecificVolume.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/SpecificVolume.g.cs @@ -745,11 +745,11 @@ private bool TryToUnit(SpecificVolumeUnit unit, [NotNullWhen(true)] out Specific SpecificVolume? convertedOrNull = (Unit, unit) switch { // SpecificVolumeUnit -> BaseUnit - (SpecificVolumeUnit.CubicFootPerPound, SpecificVolumeUnit.CubicMeterPerKilogram) => new SpecificVolume(_value / 16.01846353, SpecificVolumeUnit.CubicMeterPerKilogram), + (SpecificVolumeUnit.CubicFootPerPound, SpecificVolumeUnit.CubicMeterPerKilogram) => new SpecificVolume(_value * 0.028316846592 / 0.45359237, SpecificVolumeUnit.CubicMeterPerKilogram), (SpecificVolumeUnit.MillicubicMeterPerKilogram, SpecificVolumeUnit.CubicMeterPerKilogram) => new SpecificVolume((_value) * 1e-3d, SpecificVolumeUnit.CubicMeterPerKilogram), // BaseUnit -> SpecificVolumeUnit - (SpecificVolumeUnit.CubicMeterPerKilogram, SpecificVolumeUnit.CubicFootPerPound) => new SpecificVolume(_value * 16.01846353, SpecificVolumeUnit.CubicFootPerPound), + (SpecificVolumeUnit.CubicMeterPerKilogram, SpecificVolumeUnit.CubicFootPerPound) => new SpecificVolume(_value * 0.45359237 / 0.028316846592, SpecificVolumeUnit.CubicFootPerPound), (SpecificVolumeUnit.CubicMeterPerKilogram, SpecificVolumeUnit.MillicubicMeterPerKilogram) => new SpecificVolume((_value) / 1e-3d, SpecificVolumeUnit.MillicubicMeterPerKilogram), _ => null diff --git a/UnitsNet/GeneratedCode/Quantities/SpecificWeight.g.cs b/UnitsNet/GeneratedCode/Quantities/SpecificWeight.g.cs index cc11c79ed2..ad707ea084 100644 --- a/UnitsNet/GeneratedCode/Quantities/SpecificWeight.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/SpecificWeight.g.cs @@ -992,13 +992,13 @@ private bool TryToUnit(SpecificWeightUnit unit, [NotNullWhen(true)] out Specific (SpecificWeightUnit.KilonewtonPerCubicCentimeter, SpecificWeightUnit.NewtonPerCubicMeter) => new SpecificWeight((_value * 1000000) * 1e3d, SpecificWeightUnit.NewtonPerCubicMeter), (SpecificWeightUnit.KilonewtonPerCubicMeter, SpecificWeightUnit.NewtonPerCubicMeter) => new SpecificWeight((_value) * 1e3d, SpecificWeightUnit.NewtonPerCubicMeter), (SpecificWeightUnit.KilonewtonPerCubicMillimeter, SpecificWeightUnit.NewtonPerCubicMeter) => new SpecificWeight((_value * 1000000000) * 1e3d, SpecificWeightUnit.NewtonPerCubicMeter), - (SpecificWeightUnit.KilopoundForcePerCubicFoot, SpecificWeightUnit.NewtonPerCubicMeter) => new SpecificWeight((_value * 1.570874638462462e2) * 1e3d, SpecificWeightUnit.NewtonPerCubicMeter), - (SpecificWeightUnit.KilopoundForcePerCubicInch, SpecificWeightUnit.NewtonPerCubicMeter) => new SpecificWeight((_value * 2.714471375263134e5) * 1e3d, SpecificWeightUnit.NewtonPerCubicMeter), + (SpecificWeightUnit.KilopoundForcePerCubicFoot, SpecificWeightUnit.NewtonPerCubicMeter) => new SpecificWeight((_value * 4.4482216152605 / 0.028316846592) * 1e3d, SpecificWeightUnit.NewtonPerCubicMeter), + (SpecificWeightUnit.KilopoundForcePerCubicInch, SpecificWeightUnit.NewtonPerCubicMeter) => new SpecificWeight((_value * 4.4482216152605 / 1.6387064e-5) * 1e3d, SpecificWeightUnit.NewtonPerCubicMeter), (SpecificWeightUnit.MeganewtonPerCubicMeter, SpecificWeightUnit.NewtonPerCubicMeter) => new SpecificWeight((_value) * 1e6d, SpecificWeightUnit.NewtonPerCubicMeter), (SpecificWeightUnit.NewtonPerCubicCentimeter, SpecificWeightUnit.NewtonPerCubicMeter) => new SpecificWeight(_value * 1000000, SpecificWeightUnit.NewtonPerCubicMeter), (SpecificWeightUnit.NewtonPerCubicMillimeter, SpecificWeightUnit.NewtonPerCubicMeter) => new SpecificWeight(_value * 1000000000, SpecificWeightUnit.NewtonPerCubicMeter), - (SpecificWeightUnit.PoundForcePerCubicFoot, SpecificWeightUnit.NewtonPerCubicMeter) => new SpecificWeight(_value * 1.570874638462462e2, SpecificWeightUnit.NewtonPerCubicMeter), - (SpecificWeightUnit.PoundForcePerCubicInch, SpecificWeightUnit.NewtonPerCubicMeter) => new SpecificWeight(_value * 2.714471375263134e5, SpecificWeightUnit.NewtonPerCubicMeter), + (SpecificWeightUnit.PoundForcePerCubicFoot, SpecificWeightUnit.NewtonPerCubicMeter) => new SpecificWeight(_value * 4.4482216152605 / 0.028316846592, SpecificWeightUnit.NewtonPerCubicMeter), + (SpecificWeightUnit.PoundForcePerCubicInch, SpecificWeightUnit.NewtonPerCubicMeter) => new SpecificWeight(_value * 4.4482216152605 / 1.6387064e-5, SpecificWeightUnit.NewtonPerCubicMeter), (SpecificWeightUnit.TonneForcePerCubicCentimeter, SpecificWeightUnit.NewtonPerCubicMeter) => new SpecificWeight(_value * 9.80665e9, SpecificWeightUnit.NewtonPerCubicMeter), (SpecificWeightUnit.TonneForcePerCubicMeter, SpecificWeightUnit.NewtonPerCubicMeter) => new SpecificWeight(_value * 9.80665e3, SpecificWeightUnit.NewtonPerCubicMeter), (SpecificWeightUnit.TonneForcePerCubicMillimeter, SpecificWeightUnit.NewtonPerCubicMeter) => new SpecificWeight(_value * 9.80665e12, SpecificWeightUnit.NewtonPerCubicMeter), @@ -1010,13 +1010,13 @@ private bool TryToUnit(SpecificWeightUnit unit, [NotNullWhen(true)] out Specific (SpecificWeightUnit.NewtonPerCubicMeter, SpecificWeightUnit.KilonewtonPerCubicCentimeter) => new SpecificWeight((_value * 0.000001) / 1e3d, SpecificWeightUnit.KilonewtonPerCubicCentimeter), (SpecificWeightUnit.NewtonPerCubicMeter, SpecificWeightUnit.KilonewtonPerCubicMeter) => new SpecificWeight((_value) / 1e3d, SpecificWeightUnit.KilonewtonPerCubicMeter), (SpecificWeightUnit.NewtonPerCubicMeter, SpecificWeightUnit.KilonewtonPerCubicMillimeter) => new SpecificWeight((_value * 0.000000001) / 1e3d, SpecificWeightUnit.KilonewtonPerCubicMillimeter), - (SpecificWeightUnit.NewtonPerCubicMeter, SpecificWeightUnit.KilopoundForcePerCubicFoot) => new SpecificWeight((_value / 1.570874638462462e2) / 1e3d, SpecificWeightUnit.KilopoundForcePerCubicFoot), - (SpecificWeightUnit.NewtonPerCubicMeter, SpecificWeightUnit.KilopoundForcePerCubicInch) => new SpecificWeight((_value / 2.714471375263134e5) / 1e3d, SpecificWeightUnit.KilopoundForcePerCubicInch), + (SpecificWeightUnit.NewtonPerCubicMeter, SpecificWeightUnit.KilopoundForcePerCubicFoot) => new SpecificWeight((_value * 0.028316846592 / 4.4482216152605) / 1e3d, SpecificWeightUnit.KilopoundForcePerCubicFoot), + (SpecificWeightUnit.NewtonPerCubicMeter, SpecificWeightUnit.KilopoundForcePerCubicInch) => new SpecificWeight((_value * 1.6387064e-5 / 4.4482216152605) / 1e3d, SpecificWeightUnit.KilopoundForcePerCubicInch), (SpecificWeightUnit.NewtonPerCubicMeter, SpecificWeightUnit.MeganewtonPerCubicMeter) => new SpecificWeight((_value) / 1e6d, SpecificWeightUnit.MeganewtonPerCubicMeter), (SpecificWeightUnit.NewtonPerCubicMeter, SpecificWeightUnit.NewtonPerCubicCentimeter) => new SpecificWeight(_value * 0.000001, SpecificWeightUnit.NewtonPerCubicCentimeter), (SpecificWeightUnit.NewtonPerCubicMeter, SpecificWeightUnit.NewtonPerCubicMillimeter) => new SpecificWeight(_value * 0.000000001, SpecificWeightUnit.NewtonPerCubicMillimeter), - (SpecificWeightUnit.NewtonPerCubicMeter, SpecificWeightUnit.PoundForcePerCubicFoot) => new SpecificWeight(_value / 1.570874638462462e2, SpecificWeightUnit.PoundForcePerCubicFoot), - (SpecificWeightUnit.NewtonPerCubicMeter, SpecificWeightUnit.PoundForcePerCubicInch) => new SpecificWeight(_value / 2.714471375263134e5, SpecificWeightUnit.PoundForcePerCubicInch), + (SpecificWeightUnit.NewtonPerCubicMeter, SpecificWeightUnit.PoundForcePerCubicFoot) => new SpecificWeight(_value * 0.028316846592 / 4.4482216152605, SpecificWeightUnit.PoundForcePerCubicFoot), + (SpecificWeightUnit.NewtonPerCubicMeter, SpecificWeightUnit.PoundForcePerCubicInch) => new SpecificWeight(_value * 1.6387064e-5 / 4.4482216152605, SpecificWeightUnit.PoundForcePerCubicInch), (SpecificWeightUnit.NewtonPerCubicMeter, SpecificWeightUnit.TonneForcePerCubicCentimeter) => new SpecificWeight(_value / 9.80665e9, SpecificWeightUnit.TonneForcePerCubicCentimeter), (SpecificWeightUnit.NewtonPerCubicMeter, SpecificWeightUnit.TonneForcePerCubicMeter) => new SpecificWeight(_value / 9.80665e3, SpecificWeightUnit.TonneForcePerCubicMeter), (SpecificWeightUnit.NewtonPerCubicMeter, SpecificWeightUnit.TonneForcePerCubicMillimeter) => new SpecificWeight(_value / 9.80665e12, SpecificWeightUnit.TonneForcePerCubicMillimeter), diff --git a/UnitsNet/GeneratedCode/Quantities/StandardVolumeFlow.g.cs b/UnitsNet/GeneratedCode/Quantities/StandardVolumeFlow.g.cs index b681817539..82a30f53e4 100644 --- a/UnitsNet/GeneratedCode/Quantities/StandardVolumeFlow.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/StandardVolumeFlow.g.cs @@ -822,9 +822,9 @@ private bool TryToUnit(StandardVolumeFlowUnit unit, [NotNullWhen(true)] out Stan { // StandardVolumeFlowUnit -> BaseUnit (StandardVolumeFlowUnit.StandardCubicCentimeterPerMinute, StandardVolumeFlowUnit.StandardCubicMeterPerSecond) => new StandardVolumeFlow(_value / 6e7, StandardVolumeFlowUnit.StandardCubicMeterPerSecond), - (StandardVolumeFlowUnit.StandardCubicFootPerHour, StandardVolumeFlowUnit.StandardCubicMeterPerSecond) => new StandardVolumeFlow(_value * 7.8657907199999087346816086183876e-6, StandardVolumeFlowUnit.StandardCubicMeterPerSecond), - (StandardVolumeFlowUnit.StandardCubicFootPerMinute, StandardVolumeFlowUnit.StandardCubicMeterPerSecond) => new StandardVolumeFlow(_value / 2118.88000326, StandardVolumeFlowUnit.StandardCubicMeterPerSecond), - (StandardVolumeFlowUnit.StandardCubicFootPerSecond, StandardVolumeFlowUnit.StandardCubicMeterPerSecond) => new StandardVolumeFlow(_value / 35.314666721, StandardVolumeFlowUnit.StandardCubicMeterPerSecond), + (StandardVolumeFlowUnit.StandardCubicFootPerHour, StandardVolumeFlowUnit.StandardCubicMeterPerSecond) => new StandardVolumeFlow(_value * 0.028316846592 / 3600, StandardVolumeFlowUnit.StandardCubicMeterPerSecond), + (StandardVolumeFlowUnit.StandardCubicFootPerMinute, StandardVolumeFlowUnit.StandardCubicMeterPerSecond) => new StandardVolumeFlow(_value * 0.028316846592 / 60, StandardVolumeFlowUnit.StandardCubicMeterPerSecond), + (StandardVolumeFlowUnit.StandardCubicFootPerSecond, StandardVolumeFlowUnit.StandardCubicMeterPerSecond) => new StandardVolumeFlow(_value * 0.028316846592, StandardVolumeFlowUnit.StandardCubicMeterPerSecond), (StandardVolumeFlowUnit.StandardCubicMeterPerDay, StandardVolumeFlowUnit.StandardCubicMeterPerSecond) => new StandardVolumeFlow(_value / 86400, StandardVolumeFlowUnit.StandardCubicMeterPerSecond), (StandardVolumeFlowUnit.StandardCubicMeterPerHour, StandardVolumeFlowUnit.StandardCubicMeterPerSecond) => new StandardVolumeFlow(_value / 3600, StandardVolumeFlowUnit.StandardCubicMeterPerSecond), (StandardVolumeFlowUnit.StandardCubicMeterPerMinute, StandardVolumeFlowUnit.StandardCubicMeterPerSecond) => new StandardVolumeFlow(_value / 60, StandardVolumeFlowUnit.StandardCubicMeterPerSecond), @@ -832,9 +832,9 @@ private bool TryToUnit(StandardVolumeFlowUnit unit, [NotNullWhen(true)] out Stan // BaseUnit -> StandardVolumeFlowUnit (StandardVolumeFlowUnit.StandardCubicMeterPerSecond, StandardVolumeFlowUnit.StandardCubicCentimeterPerMinute) => new StandardVolumeFlow(_value * 6e7, StandardVolumeFlowUnit.StandardCubicCentimeterPerMinute), - (StandardVolumeFlowUnit.StandardCubicMeterPerSecond, StandardVolumeFlowUnit.StandardCubicFootPerHour) => new StandardVolumeFlow(_value / 7.8657907199999087346816086183876e-6, StandardVolumeFlowUnit.StandardCubicFootPerHour), - (StandardVolumeFlowUnit.StandardCubicMeterPerSecond, StandardVolumeFlowUnit.StandardCubicFootPerMinute) => new StandardVolumeFlow(_value * 2118.88000326, StandardVolumeFlowUnit.StandardCubicFootPerMinute), - (StandardVolumeFlowUnit.StandardCubicMeterPerSecond, StandardVolumeFlowUnit.StandardCubicFootPerSecond) => new StandardVolumeFlow(_value * 35.314666721, StandardVolumeFlowUnit.StandardCubicFootPerSecond), + (StandardVolumeFlowUnit.StandardCubicMeterPerSecond, StandardVolumeFlowUnit.StandardCubicFootPerHour) => new StandardVolumeFlow(_value / (0.028316846592 / 3600), StandardVolumeFlowUnit.StandardCubicFootPerHour), + (StandardVolumeFlowUnit.StandardCubicMeterPerSecond, StandardVolumeFlowUnit.StandardCubicFootPerMinute) => new StandardVolumeFlow(_value / (0.028316846592 / 60), StandardVolumeFlowUnit.StandardCubicFootPerMinute), + (StandardVolumeFlowUnit.StandardCubicMeterPerSecond, StandardVolumeFlowUnit.StandardCubicFootPerSecond) => new StandardVolumeFlow(_value / 0.028316846592, StandardVolumeFlowUnit.StandardCubicFootPerSecond), (StandardVolumeFlowUnit.StandardCubicMeterPerSecond, StandardVolumeFlowUnit.StandardCubicMeterPerDay) => new StandardVolumeFlow(_value * 86400, StandardVolumeFlowUnit.StandardCubicMeterPerDay), (StandardVolumeFlowUnit.StandardCubicMeterPerSecond, StandardVolumeFlowUnit.StandardCubicMeterPerHour) => new StandardVolumeFlow(_value * 3600, StandardVolumeFlowUnit.StandardCubicMeterPerHour), (StandardVolumeFlowUnit.StandardCubicMeterPerSecond, StandardVolumeFlowUnit.StandardCubicMeterPerMinute) => new StandardVolumeFlow(_value * 60, StandardVolumeFlowUnit.StandardCubicMeterPerMinute), diff --git a/UnitsNet/GeneratedCode/Quantities/ThermalConductivity.g.cs b/UnitsNet/GeneratedCode/Quantities/ThermalConductivity.g.cs index 2bcd45793f..5011bf152e 100644 --- a/UnitsNet/GeneratedCode/Quantities/ThermalConductivity.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/ThermalConductivity.g.cs @@ -712,10 +712,10 @@ private bool TryToUnit(ThermalConductivityUnit unit, [NotNullWhen(true)] out The ThermalConductivity? convertedOrNull = (Unit, unit) switch { // ThermalConductivityUnit -> BaseUnit - (ThermalConductivityUnit.BtuPerHourFootFahrenheit, ThermalConductivityUnit.WattPerMeterKelvin) => new ThermalConductivity(_value * 1.73073467, ThermalConductivityUnit.WattPerMeterKelvin), + (ThermalConductivityUnit.BtuPerHourFootFahrenheit, ThermalConductivityUnit.WattPerMeterKelvin) => new ThermalConductivity(_value * ((1055.05585262 / (0.3048 * 3600)) * 1.8), ThermalConductivityUnit.WattPerMeterKelvin), // BaseUnit -> ThermalConductivityUnit - (ThermalConductivityUnit.WattPerMeterKelvin, ThermalConductivityUnit.BtuPerHourFootFahrenheit) => new ThermalConductivity(_value / 1.73073467, ThermalConductivityUnit.BtuPerHourFootFahrenheit), + (ThermalConductivityUnit.WattPerMeterKelvin, ThermalConductivityUnit.BtuPerHourFootFahrenheit) => new ThermalConductivity(_value / ((1055.05585262 / (0.3048 * 3600)) * 1.8), ThermalConductivityUnit.BtuPerHourFootFahrenheit), _ => null }; diff --git a/UnitsNet/GeneratedCode/Quantities/Torque.g.cs b/UnitsNet/GeneratedCode/Quantities/Torque.g.cs index cc2f865cf7..3af689138c 100644 --- a/UnitsNet/GeneratedCode/Quantities/Torque.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Torque.g.cs @@ -1141,18 +1141,18 @@ private bool TryToUnit(TorqueUnit unit, [NotNullWhen(true)] out Torque? converte (TorqueUnit.KilonewtonCentimeter, TorqueUnit.NewtonMeter) => new Torque((_value * 0.01) * 1e3d, TorqueUnit.NewtonMeter), (TorqueUnit.KilonewtonMeter, TorqueUnit.NewtonMeter) => new Torque((_value) * 1e3d, TorqueUnit.NewtonMeter), (TorqueUnit.KilonewtonMillimeter, TorqueUnit.NewtonMeter) => new Torque((_value * 0.001) * 1e3d, TorqueUnit.NewtonMeter), - (TorqueUnit.KilopoundForceFoot, TorqueUnit.NewtonMeter) => new Torque((_value * 1.3558179483314) * 1e3d, TorqueUnit.NewtonMeter), - (TorqueUnit.KilopoundForceInch, TorqueUnit.NewtonMeter) => new Torque((_value * 1.129848290276167e-1) * 1e3d, TorqueUnit.NewtonMeter), + (TorqueUnit.KilopoundForceFoot, TorqueUnit.NewtonMeter) => new Torque((_value * 4.4482216152605 * 0.3048) * 1e3d, TorqueUnit.NewtonMeter), + (TorqueUnit.KilopoundForceInch, TorqueUnit.NewtonMeter) => new Torque((_value * 4.4482216152605 * 2.54e-2) * 1e3d, TorqueUnit.NewtonMeter), (TorqueUnit.MeganewtonCentimeter, TorqueUnit.NewtonMeter) => new Torque((_value * 0.01) * 1e6d, TorqueUnit.NewtonMeter), (TorqueUnit.MeganewtonMeter, TorqueUnit.NewtonMeter) => new Torque((_value) * 1e6d, TorqueUnit.NewtonMeter), (TorqueUnit.MeganewtonMillimeter, TorqueUnit.NewtonMeter) => new Torque((_value * 0.001) * 1e6d, TorqueUnit.NewtonMeter), - (TorqueUnit.MegapoundForceFoot, TorqueUnit.NewtonMeter) => new Torque((_value * 1.3558179483314) * 1e6d, TorqueUnit.NewtonMeter), - (TorqueUnit.MegapoundForceInch, TorqueUnit.NewtonMeter) => new Torque((_value * 1.129848290276167e-1) * 1e6d, TorqueUnit.NewtonMeter), + (TorqueUnit.MegapoundForceFoot, TorqueUnit.NewtonMeter) => new Torque((_value * 4.4482216152605 * 0.3048) * 1e6d, TorqueUnit.NewtonMeter), + (TorqueUnit.MegapoundForceInch, TorqueUnit.NewtonMeter) => new Torque((_value * 4.4482216152605 * 2.54e-2) * 1e6d, TorqueUnit.NewtonMeter), (TorqueUnit.NewtonCentimeter, TorqueUnit.NewtonMeter) => new Torque(_value * 0.01, TorqueUnit.NewtonMeter), (TorqueUnit.NewtonMillimeter, TorqueUnit.NewtonMeter) => new Torque(_value * 0.001, TorqueUnit.NewtonMeter), - (TorqueUnit.PoundalFoot, TorqueUnit.NewtonMeter) => new Torque(_value * 4.21401100938048e-2, TorqueUnit.NewtonMeter), - (TorqueUnit.PoundForceFoot, TorqueUnit.NewtonMeter) => new Torque(_value * 1.3558179483314, TorqueUnit.NewtonMeter), - (TorqueUnit.PoundForceInch, TorqueUnit.NewtonMeter) => new Torque(_value * 1.129848290276167e-1, TorqueUnit.NewtonMeter), + (TorqueUnit.PoundalFoot, TorqueUnit.NewtonMeter) => new Torque(_value * 0.138254954376 * 0.3048, TorqueUnit.NewtonMeter), + (TorqueUnit.PoundForceFoot, TorqueUnit.NewtonMeter) => new Torque(_value * 4.4482216152605 * 0.3048, TorqueUnit.NewtonMeter), + (TorqueUnit.PoundForceInch, TorqueUnit.NewtonMeter) => new Torque(_value * 4.4482216152605 * 2.54e-2, TorqueUnit.NewtonMeter), (TorqueUnit.TonneForceCentimeter, TorqueUnit.NewtonMeter) => new Torque(_value * 9.80665e1, TorqueUnit.NewtonMeter), (TorqueUnit.TonneForceMeter, TorqueUnit.NewtonMeter) => new Torque(_value * 9.80665e3, TorqueUnit.NewtonMeter), (TorqueUnit.TonneForceMillimeter, TorqueUnit.NewtonMeter) => new Torque(_value * 9.80665, TorqueUnit.NewtonMeter), @@ -1167,18 +1167,18 @@ private bool TryToUnit(TorqueUnit unit, [NotNullWhen(true)] out Torque? converte (TorqueUnit.NewtonMeter, TorqueUnit.KilonewtonCentimeter) => new Torque((_value * 100) / 1e3d, TorqueUnit.KilonewtonCentimeter), (TorqueUnit.NewtonMeter, TorqueUnit.KilonewtonMeter) => new Torque((_value) / 1e3d, TorqueUnit.KilonewtonMeter), (TorqueUnit.NewtonMeter, TorqueUnit.KilonewtonMillimeter) => new Torque((_value * 1000) / 1e3d, TorqueUnit.KilonewtonMillimeter), - (TorqueUnit.NewtonMeter, TorqueUnit.KilopoundForceFoot) => new Torque((_value / 1.3558179483314) / 1e3d, TorqueUnit.KilopoundForceFoot), - (TorqueUnit.NewtonMeter, TorqueUnit.KilopoundForceInch) => new Torque((_value / 1.129848290276167e-1) / 1e3d, TorqueUnit.KilopoundForceInch), + (TorqueUnit.NewtonMeter, TorqueUnit.KilopoundForceFoot) => new Torque((_value / (4.4482216152605 * 0.3048)) / 1e3d, TorqueUnit.KilopoundForceFoot), + (TorqueUnit.NewtonMeter, TorqueUnit.KilopoundForceInch) => new Torque((_value / (4.4482216152605 * 2.54e-2)) / 1e3d, TorqueUnit.KilopoundForceInch), (TorqueUnit.NewtonMeter, TorqueUnit.MeganewtonCentimeter) => new Torque((_value * 100) / 1e6d, TorqueUnit.MeganewtonCentimeter), (TorqueUnit.NewtonMeter, TorqueUnit.MeganewtonMeter) => new Torque((_value) / 1e6d, TorqueUnit.MeganewtonMeter), (TorqueUnit.NewtonMeter, TorqueUnit.MeganewtonMillimeter) => new Torque((_value * 1000) / 1e6d, TorqueUnit.MeganewtonMillimeter), - (TorqueUnit.NewtonMeter, TorqueUnit.MegapoundForceFoot) => new Torque((_value / 1.3558179483314) / 1e6d, TorqueUnit.MegapoundForceFoot), - (TorqueUnit.NewtonMeter, TorqueUnit.MegapoundForceInch) => new Torque((_value / 1.129848290276167e-1) / 1e6d, TorqueUnit.MegapoundForceInch), + (TorqueUnit.NewtonMeter, TorqueUnit.MegapoundForceFoot) => new Torque((_value / (4.4482216152605 * 0.3048)) / 1e6d, TorqueUnit.MegapoundForceFoot), + (TorqueUnit.NewtonMeter, TorqueUnit.MegapoundForceInch) => new Torque((_value / (4.4482216152605 * 2.54e-2)) / 1e6d, TorqueUnit.MegapoundForceInch), (TorqueUnit.NewtonMeter, TorqueUnit.NewtonCentimeter) => new Torque(_value * 100, TorqueUnit.NewtonCentimeter), (TorqueUnit.NewtonMeter, TorqueUnit.NewtonMillimeter) => new Torque(_value * 1000, TorqueUnit.NewtonMillimeter), - (TorqueUnit.NewtonMeter, TorqueUnit.PoundalFoot) => new Torque(_value / 4.21401100938048e-2, TorqueUnit.PoundalFoot), - (TorqueUnit.NewtonMeter, TorqueUnit.PoundForceFoot) => new Torque(_value / 1.3558179483314, TorqueUnit.PoundForceFoot), - (TorqueUnit.NewtonMeter, TorqueUnit.PoundForceInch) => new Torque(_value / 1.129848290276167e-1, TorqueUnit.PoundForceInch), + (TorqueUnit.NewtonMeter, TorqueUnit.PoundalFoot) => new Torque(_value / (0.138254954376 * 0.3048), TorqueUnit.PoundalFoot), + (TorqueUnit.NewtonMeter, TorqueUnit.PoundForceFoot) => new Torque(_value / (4.4482216152605 * 0.3048), TorqueUnit.PoundForceFoot), + (TorqueUnit.NewtonMeter, TorqueUnit.PoundForceInch) => new Torque(_value / (4.4482216152605 * 2.54e-2), TorqueUnit.PoundForceInch), (TorqueUnit.NewtonMeter, TorqueUnit.TonneForceCentimeter) => new Torque(_value / 9.80665e1, TorqueUnit.TonneForceCentimeter), (TorqueUnit.NewtonMeter, TorqueUnit.TonneForceMeter) => new Torque(_value / 9.80665e3, TorqueUnit.TonneForceMeter), (TorqueUnit.NewtonMeter, TorqueUnit.TonneForceMillimeter) => new Torque(_value / 9.80665, TorqueUnit.TonneForceMillimeter), diff --git a/UnitsNet/GeneratedCode/Quantities/Volume.g.cs b/UnitsNet/GeneratedCode/Quantities/Volume.g.cs index cbaa7a0531..25cb6f7120 100644 --- a/UnitsNet/GeneratedCode/Quantities/Volume.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/Volume.g.cs @@ -1638,40 +1638,40 @@ private bool TryToUnit(VolumeUnit unit, [NotNullWhen(true)] out Volume? converte Volume? convertedOrNull = (Unit, unit) switch { // VolumeUnit -> BaseUnit - (VolumeUnit.AcreFoot, VolumeUnit.CubicMeter) => new Volume(_value / 0.000810714, VolumeUnit.CubicMeter), + (VolumeUnit.AcreFoot, VolumeUnit.CubicMeter) => new Volume(_value * 1233.48183754752, VolumeUnit.CubicMeter), (VolumeUnit.AuTablespoon, VolumeUnit.CubicMeter) => new Volume(_value * 2e-5, VolumeUnit.CubicMeter), - (VolumeUnit.BoardFoot, VolumeUnit.CubicMeter) => new Volume(_value * 2.3597372158e-3, VolumeUnit.CubicMeter), + (VolumeUnit.BoardFoot, VolumeUnit.CubicMeter) => new Volume(_value * (0.028316846592 / 12), VolumeUnit.CubicMeter), (VolumeUnit.Centiliter, VolumeUnit.CubicMeter) => new Volume((_value / 1e3) * 1e-2d, VolumeUnit.CubicMeter), (VolumeUnit.CubicCentimeter, VolumeUnit.CubicMeter) => new Volume(_value / 1e6, VolumeUnit.CubicMeter), (VolumeUnit.CubicDecimeter, VolumeUnit.CubicMeter) => new Volume(_value / 1e3, VolumeUnit.CubicMeter), - (VolumeUnit.CubicFoot, VolumeUnit.CubicMeter) => new Volume(_value * 2.8316846592e-2, VolumeUnit.CubicMeter), + (VolumeUnit.CubicFoot, VolumeUnit.CubicMeter) => new Volume(_value * 0.028316846592, VolumeUnit.CubicMeter), (VolumeUnit.CubicHectometer, VolumeUnit.CubicMeter) => new Volume(_value * 1e6, VolumeUnit.CubicMeter), (VolumeUnit.CubicInch, VolumeUnit.CubicMeter) => new Volume(_value * 1.6387064e-5, VolumeUnit.CubicMeter), (VolumeUnit.CubicKilometer, VolumeUnit.CubicMeter) => new Volume(_value * 1e9, VolumeUnit.CubicMeter), (VolumeUnit.CubicMicrometer, VolumeUnit.CubicMeter) => new Volume(_value / 1e18, VolumeUnit.CubicMeter), - (VolumeUnit.CubicMile, VolumeUnit.CubicMeter) => new Volume(_value * 4.16818182544058e9, VolumeUnit.CubicMeter), + (VolumeUnit.CubicMile, VolumeUnit.CubicMeter) => new Volume(_value * 4.168181825440579584e9, VolumeUnit.CubicMeter), (VolumeUnit.CubicMillimeter, VolumeUnit.CubicMeter) => new Volume(_value / 1e9, VolumeUnit.CubicMeter), - (VolumeUnit.CubicYard, VolumeUnit.CubicMeter) => new Volume(_value * 0.764554858, VolumeUnit.CubicMeter), + (VolumeUnit.CubicYard, VolumeUnit.CubicMeter) => new Volume(_value * 0.764554857984, VolumeUnit.CubicMeter), (VolumeUnit.Decaliter, VolumeUnit.CubicMeter) => new Volume((_value / 1e3) * 1e1d, VolumeUnit.CubicMeter), (VolumeUnit.DecausGallon, VolumeUnit.CubicMeter) => new Volume((_value * 0.003785411784) * 1e1d, VolumeUnit.CubicMeter), (VolumeUnit.Deciliter, VolumeUnit.CubicMeter) => new Volume((_value / 1e3) * 1e-1d, VolumeUnit.CubicMeter), (VolumeUnit.DeciusGallon, VolumeUnit.CubicMeter) => new Volume((_value * 0.003785411784) * 1e-1d, VolumeUnit.CubicMeter), - (VolumeUnit.HectocubicFoot, VolumeUnit.CubicMeter) => new Volume((_value * 2.8316846592e-2) * 1e2d, VolumeUnit.CubicMeter), + (VolumeUnit.HectocubicFoot, VolumeUnit.CubicMeter) => new Volume((_value * 0.028316846592) * 1e2d, VolumeUnit.CubicMeter), (VolumeUnit.HectocubicMeter, VolumeUnit.CubicMeter) => new Volume((_value) * 1e2d, VolumeUnit.CubicMeter), (VolumeUnit.Hectoliter, VolumeUnit.CubicMeter) => new Volume((_value / 1e3) * 1e2d, VolumeUnit.CubicMeter), (VolumeUnit.HectousGallon, VolumeUnit.CubicMeter) => new Volume((_value * 0.003785411784) * 1e2d, VolumeUnit.CubicMeter), (VolumeUnit.ImperialBeerBarrel, VolumeUnit.CubicMeter) => new Volume(_value * 0.16365924, VolumeUnit.CubicMeter), (VolumeUnit.ImperialGallon, VolumeUnit.CubicMeter) => new Volume(_value * 0.00454609, VolumeUnit.CubicMeter), - (VolumeUnit.ImperialOunce, VolumeUnit.CubicMeter) => new Volume(_value * 2.8413062499962901241875439064617e-5, VolumeUnit.CubicMeter), + (VolumeUnit.ImperialOunce, VolumeUnit.CubicMeter) => new Volume(_value * 2.84130625e-5, VolumeUnit.CubicMeter), (VolumeUnit.ImperialPint, VolumeUnit.CubicMeter) => new Volume(_value * 5.6826125e-4, VolumeUnit.CubicMeter), (VolumeUnit.ImperialQuart, VolumeUnit.CubicMeter) => new Volume(_value * 1.1365225e-3, VolumeUnit.CubicMeter), - (VolumeUnit.KilocubicFoot, VolumeUnit.CubicMeter) => new Volume((_value * 2.8316846592e-2) * 1e3d, VolumeUnit.CubicMeter), + (VolumeUnit.KilocubicFoot, VolumeUnit.CubicMeter) => new Volume((_value * 0.028316846592) * 1e3d, VolumeUnit.CubicMeter), (VolumeUnit.KilocubicMeter, VolumeUnit.CubicMeter) => new Volume((_value) * 1e3d, VolumeUnit.CubicMeter), (VolumeUnit.KiloimperialGallon, VolumeUnit.CubicMeter) => new Volume((_value * 0.00454609) * 1e3d, VolumeUnit.CubicMeter), (VolumeUnit.Kiloliter, VolumeUnit.CubicMeter) => new Volume((_value / 1e3) * 1e3d, VolumeUnit.CubicMeter), (VolumeUnit.KilousGallon, VolumeUnit.CubicMeter) => new Volume((_value * 0.003785411784) * 1e3d, VolumeUnit.CubicMeter), (VolumeUnit.Liter, VolumeUnit.CubicMeter) => new Volume(_value / 1e3, VolumeUnit.CubicMeter), - (VolumeUnit.MegacubicFoot, VolumeUnit.CubicMeter) => new Volume((_value * 2.8316846592e-2) * 1e6d, VolumeUnit.CubicMeter), + (VolumeUnit.MegacubicFoot, VolumeUnit.CubicMeter) => new Volume((_value * 0.028316846592) * 1e6d, VolumeUnit.CubicMeter), (VolumeUnit.MegaimperialGallon, VolumeUnit.CubicMeter) => new Volume((_value * 0.00454609) * 1e6d, VolumeUnit.CubicMeter), (VolumeUnit.Megaliter, VolumeUnit.CubicMeter) => new Volume((_value / 1e3) * 1e6d, VolumeUnit.CubicMeter), (VolumeUnit.MegausGallon, VolumeUnit.CubicMeter) => new Volume((_value * 0.003785411784) * 1e6d, VolumeUnit.CubicMeter), @@ -1682,51 +1682,51 @@ private bool TryToUnit(VolumeUnit unit, [NotNullWhen(true)] out Volume? converte (VolumeUnit.Nanoliter, VolumeUnit.CubicMeter) => new Volume((_value / 1e3) * 1e-9d, VolumeUnit.CubicMeter), (VolumeUnit.OilBarrel, VolumeUnit.CubicMeter) => new Volume(_value * 0.158987294928, VolumeUnit.CubicMeter), (VolumeUnit.UkTablespoon, VolumeUnit.CubicMeter) => new Volume(_value * 1.5e-5, VolumeUnit.CubicMeter), - (VolumeUnit.UsBeerBarrel, VolumeUnit.CubicMeter) => new Volume(_value * 0.1173477658, VolumeUnit.CubicMeter), + (VolumeUnit.UsBeerBarrel, VolumeUnit.CubicMeter) => new Volume(_value * 0.117347765304, VolumeUnit.CubicMeter), (VolumeUnit.UsCustomaryCup, VolumeUnit.CubicMeter) => new Volume(_value * 0.0002365882365, VolumeUnit.CubicMeter), (VolumeUnit.UsGallon, VolumeUnit.CubicMeter) => new Volume(_value * 0.003785411784, VolumeUnit.CubicMeter), (VolumeUnit.UsLegalCup, VolumeUnit.CubicMeter) => new Volume(_value * 0.00024, VolumeUnit.CubicMeter), - (VolumeUnit.UsOunce, VolumeUnit.CubicMeter) => new Volume(_value * 2.957352956253760505068307980135e-5, VolumeUnit.CubicMeter), + (VolumeUnit.UsOunce, VolumeUnit.CubicMeter) => new Volume(_value * 2.95735295625e-5, VolumeUnit.CubicMeter), (VolumeUnit.UsPint, VolumeUnit.CubicMeter) => new Volume(_value * 4.73176473e-4, VolumeUnit.CubicMeter), (VolumeUnit.UsQuart, VolumeUnit.CubicMeter) => new Volume(_value * 9.46352946e-4, VolumeUnit.CubicMeter), (VolumeUnit.UsTablespoon, VolumeUnit.CubicMeter) => new Volume(_value * 1.478676478125e-5, VolumeUnit.CubicMeter), (VolumeUnit.UsTeaspoon, VolumeUnit.CubicMeter) => new Volume(_value * 4.92892159375e-6, VolumeUnit.CubicMeter), // BaseUnit -> VolumeUnit - (VolumeUnit.CubicMeter, VolumeUnit.AcreFoot) => new Volume(_value * 0.000810714, VolumeUnit.AcreFoot), + (VolumeUnit.CubicMeter, VolumeUnit.AcreFoot) => new Volume(_value / 1233.48183754752, VolumeUnit.AcreFoot), (VolumeUnit.CubicMeter, VolumeUnit.AuTablespoon) => new Volume(_value / 2e-5, VolumeUnit.AuTablespoon), - (VolumeUnit.CubicMeter, VolumeUnit.BoardFoot) => new Volume(_value / 2.3597372158e-3, VolumeUnit.BoardFoot), + (VolumeUnit.CubicMeter, VolumeUnit.BoardFoot) => new Volume(_value / (0.028316846592 / 12), VolumeUnit.BoardFoot), (VolumeUnit.CubicMeter, VolumeUnit.Centiliter) => new Volume((_value * 1e3) / 1e-2d, VolumeUnit.Centiliter), (VolumeUnit.CubicMeter, VolumeUnit.CubicCentimeter) => new Volume(_value * 1e6, VolumeUnit.CubicCentimeter), (VolumeUnit.CubicMeter, VolumeUnit.CubicDecimeter) => new Volume(_value * 1e3, VolumeUnit.CubicDecimeter), - (VolumeUnit.CubicMeter, VolumeUnit.CubicFoot) => new Volume(_value / 2.8316846592e-2, VolumeUnit.CubicFoot), + (VolumeUnit.CubicMeter, VolumeUnit.CubicFoot) => new Volume(_value / 0.028316846592, VolumeUnit.CubicFoot), (VolumeUnit.CubicMeter, VolumeUnit.CubicHectometer) => new Volume(_value / 1e6, VolumeUnit.CubicHectometer), (VolumeUnit.CubicMeter, VolumeUnit.CubicInch) => new Volume(_value / 1.6387064e-5, VolumeUnit.CubicInch), (VolumeUnit.CubicMeter, VolumeUnit.CubicKilometer) => new Volume(_value / 1e9, VolumeUnit.CubicKilometer), (VolumeUnit.CubicMeter, VolumeUnit.CubicMicrometer) => new Volume(_value * 1e18, VolumeUnit.CubicMicrometer), - (VolumeUnit.CubicMeter, VolumeUnit.CubicMile) => new Volume(_value / 4.16818182544058e9, VolumeUnit.CubicMile), + (VolumeUnit.CubicMeter, VolumeUnit.CubicMile) => new Volume(_value / 4.168181825440579584e9, VolumeUnit.CubicMile), (VolumeUnit.CubicMeter, VolumeUnit.CubicMillimeter) => new Volume(_value * 1e9, VolumeUnit.CubicMillimeter), - (VolumeUnit.CubicMeter, VolumeUnit.CubicYard) => new Volume(_value / 0.764554858, VolumeUnit.CubicYard), + (VolumeUnit.CubicMeter, VolumeUnit.CubicYard) => new Volume(_value / 0.764554857984, VolumeUnit.CubicYard), (VolumeUnit.CubicMeter, VolumeUnit.Decaliter) => new Volume((_value * 1e3) / 1e1d, VolumeUnit.Decaliter), (VolumeUnit.CubicMeter, VolumeUnit.DecausGallon) => new Volume((_value / 0.003785411784) / 1e1d, VolumeUnit.DecausGallon), (VolumeUnit.CubicMeter, VolumeUnit.Deciliter) => new Volume((_value * 1e3) / 1e-1d, VolumeUnit.Deciliter), (VolumeUnit.CubicMeter, VolumeUnit.DeciusGallon) => new Volume((_value / 0.003785411784) / 1e-1d, VolumeUnit.DeciusGallon), - (VolumeUnit.CubicMeter, VolumeUnit.HectocubicFoot) => new Volume((_value / 2.8316846592e-2) / 1e2d, VolumeUnit.HectocubicFoot), + (VolumeUnit.CubicMeter, VolumeUnit.HectocubicFoot) => new Volume((_value / 0.028316846592) / 1e2d, VolumeUnit.HectocubicFoot), (VolumeUnit.CubicMeter, VolumeUnit.HectocubicMeter) => new Volume((_value) / 1e2d, VolumeUnit.HectocubicMeter), (VolumeUnit.CubicMeter, VolumeUnit.Hectoliter) => new Volume((_value * 1e3) / 1e2d, VolumeUnit.Hectoliter), (VolumeUnit.CubicMeter, VolumeUnit.HectousGallon) => new Volume((_value / 0.003785411784) / 1e2d, VolumeUnit.HectousGallon), (VolumeUnit.CubicMeter, VolumeUnit.ImperialBeerBarrel) => new Volume(_value / 0.16365924, VolumeUnit.ImperialBeerBarrel), (VolumeUnit.CubicMeter, VolumeUnit.ImperialGallon) => new Volume(_value / 0.00454609, VolumeUnit.ImperialGallon), - (VolumeUnit.CubicMeter, VolumeUnit.ImperialOunce) => new Volume(_value / 2.8413062499962901241875439064617e-5, VolumeUnit.ImperialOunce), + (VolumeUnit.CubicMeter, VolumeUnit.ImperialOunce) => new Volume(_value / 2.84130625e-5, VolumeUnit.ImperialOunce), (VolumeUnit.CubicMeter, VolumeUnit.ImperialPint) => new Volume(_value / 5.6826125e-4, VolumeUnit.ImperialPint), (VolumeUnit.CubicMeter, VolumeUnit.ImperialQuart) => new Volume(_value / 1.1365225e-3, VolumeUnit.ImperialQuart), - (VolumeUnit.CubicMeter, VolumeUnit.KilocubicFoot) => new Volume((_value / 2.8316846592e-2) / 1e3d, VolumeUnit.KilocubicFoot), + (VolumeUnit.CubicMeter, VolumeUnit.KilocubicFoot) => new Volume((_value / 0.028316846592) / 1e3d, VolumeUnit.KilocubicFoot), (VolumeUnit.CubicMeter, VolumeUnit.KilocubicMeter) => new Volume((_value) / 1e3d, VolumeUnit.KilocubicMeter), (VolumeUnit.CubicMeter, VolumeUnit.KiloimperialGallon) => new Volume((_value / 0.00454609) / 1e3d, VolumeUnit.KiloimperialGallon), (VolumeUnit.CubicMeter, VolumeUnit.Kiloliter) => new Volume((_value * 1e3) / 1e3d, VolumeUnit.Kiloliter), (VolumeUnit.CubicMeter, VolumeUnit.KilousGallon) => new Volume((_value / 0.003785411784) / 1e3d, VolumeUnit.KilousGallon), (VolumeUnit.CubicMeter, VolumeUnit.Liter) => new Volume(_value * 1e3, VolumeUnit.Liter), - (VolumeUnit.CubicMeter, VolumeUnit.MegacubicFoot) => new Volume((_value / 2.8316846592e-2) / 1e6d, VolumeUnit.MegacubicFoot), + (VolumeUnit.CubicMeter, VolumeUnit.MegacubicFoot) => new Volume((_value / 0.028316846592) / 1e6d, VolumeUnit.MegacubicFoot), (VolumeUnit.CubicMeter, VolumeUnit.MegaimperialGallon) => new Volume((_value / 0.00454609) / 1e6d, VolumeUnit.MegaimperialGallon), (VolumeUnit.CubicMeter, VolumeUnit.Megaliter) => new Volume((_value * 1e3) / 1e6d, VolumeUnit.Megaliter), (VolumeUnit.CubicMeter, VolumeUnit.MegausGallon) => new Volume((_value / 0.003785411784) / 1e6d, VolumeUnit.MegausGallon), @@ -1737,11 +1737,11 @@ private bool TryToUnit(VolumeUnit unit, [NotNullWhen(true)] out Volume? converte (VolumeUnit.CubicMeter, VolumeUnit.Nanoliter) => new Volume((_value * 1e3) / 1e-9d, VolumeUnit.Nanoliter), (VolumeUnit.CubicMeter, VolumeUnit.OilBarrel) => new Volume(_value / 0.158987294928, VolumeUnit.OilBarrel), (VolumeUnit.CubicMeter, VolumeUnit.UkTablespoon) => new Volume(_value / 1.5e-5, VolumeUnit.UkTablespoon), - (VolumeUnit.CubicMeter, VolumeUnit.UsBeerBarrel) => new Volume(_value / 0.1173477658, VolumeUnit.UsBeerBarrel), + (VolumeUnit.CubicMeter, VolumeUnit.UsBeerBarrel) => new Volume(_value / 0.117347765304, VolumeUnit.UsBeerBarrel), (VolumeUnit.CubicMeter, VolumeUnit.UsCustomaryCup) => new Volume(_value / 0.0002365882365, VolumeUnit.UsCustomaryCup), (VolumeUnit.CubicMeter, VolumeUnit.UsGallon) => new Volume(_value / 0.003785411784, VolumeUnit.UsGallon), (VolumeUnit.CubicMeter, VolumeUnit.UsLegalCup) => new Volume(_value / 0.00024, VolumeUnit.UsLegalCup), - (VolumeUnit.CubicMeter, VolumeUnit.UsOunce) => new Volume(_value / 2.957352956253760505068307980135e-5, VolumeUnit.UsOunce), + (VolumeUnit.CubicMeter, VolumeUnit.UsOunce) => new Volume(_value / 2.95735295625e-5, VolumeUnit.UsOunce), (VolumeUnit.CubicMeter, VolumeUnit.UsPint) => new Volume(_value / 4.73176473e-4, VolumeUnit.UsPint), (VolumeUnit.CubicMeter, VolumeUnit.UsQuart) => new Volume(_value / 9.46352946e-4, VolumeUnit.UsQuart), (VolumeUnit.CubicMeter, VolumeUnit.UsTablespoon) => new Volume(_value / 1.478676478125e-5, VolumeUnit.UsTablespoon), diff --git a/UnitsNet/GeneratedCode/Quantities/VolumeFlow.g.cs b/UnitsNet/GeneratedCode/Quantities/VolumeFlow.g.cs index 8a63666af7..24304ed034 100644 --- a/UnitsNet/GeneratedCode/Quantities/VolumeFlow.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/VolumeFlow.g.cs @@ -1918,156 +1918,156 @@ private bool TryToUnit(VolumeFlowUnit unit, [NotNullWhen(true)] out VolumeFlow? VolumeFlow? convertedOrNull = (Unit, unit) switch { // VolumeFlowUnit -> BaseUnit - (VolumeFlowUnit.AcreFootPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value / 70.0457, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.AcreFootPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value / 2.91857, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.AcreFootPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value / 0.0486427916, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.AcreFootPerSecond, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value / 0.000810713194, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.CentiliterPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 86400000) * 1e-2d, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.CentiliterPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 3600000.000) * 1e-2d, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.CentiliterPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 60000.00000) * 1e-2d, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.AcreFootPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 1233.48183754752 / 86400, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.AcreFootPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 1233.48183754752 / 3600, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.AcreFootPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 1233.48183754752 / 60, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.AcreFootPerSecond, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 1233.48183754752, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.CentiliterPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / (1000 * 86400)) * 1e-2d, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.CentiliterPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / (1000 * 3600)) * 1e-2d, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.CentiliterPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / (1000 * 60)) * 1e-2d, VolumeFlowUnit.CubicMeterPerSecond), (VolumeFlowUnit.CentiliterPerSecond, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 1000) * 1e-2d, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.CubicCentimeterPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 1.6666666666667e-8, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.CubicCentimeterPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 1e-6 / 60, VolumeFlowUnit.CubicMeterPerSecond), (VolumeFlowUnit.CubicDecimeterPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value / 60000.00000, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.CubicFootPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 7.8657907199999087346816086183876e-6, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.CubicFootPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value / 2118.88000326, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.CubicFootPerSecond, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value / 35.314666721, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.CubicFootPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 0.028316846592 / 3600, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.CubicFootPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 0.028316846592 / 60, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.CubicFootPerSecond, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 0.028316846592, VolumeFlowUnit.CubicMeterPerSecond), (VolumeFlowUnit.CubicMeterPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value / 86400, VolumeFlowUnit.CubicMeterPerSecond), (VolumeFlowUnit.CubicMeterPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value / 3600, VolumeFlowUnit.CubicMeterPerSecond), (VolumeFlowUnit.CubicMeterPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value / 60, VolumeFlowUnit.CubicMeterPerSecond), (VolumeFlowUnit.CubicMillimeterPerSecond, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 1e-9, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.CubicYardPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value / 113007, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.CubicYardPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 2.1237634944E-4, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.CubicYardPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 0.0127425809664, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.CubicYardPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 0.764554857984 / 86400, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.CubicYardPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 0.764554857984 / 3600, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.CubicYardPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 0.764554857984 / 60, VolumeFlowUnit.CubicMeterPerSecond), (VolumeFlowUnit.CubicYardPerSecond, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 0.764554857984, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.DecaliterPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 86400000) * 1e1d, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.DecaliterPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 3600000.000) * 1e1d, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.DecaliterPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 60000.00000) * 1e1d, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.DecaliterPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / (1000 * 86400)) * 1e1d, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.DecaliterPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / (1000 * 3600)) * 1e1d, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.DecaliterPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / (1000 * 60)) * 1e1d, VolumeFlowUnit.CubicMeterPerSecond), (VolumeFlowUnit.DecaliterPerSecond, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 1000) * 1e1d, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.DeciliterPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 86400000) * 1e-1d, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.DeciliterPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 3600000.000) * 1e-1d, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.DeciliterPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 60000.00000) * 1e-1d, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.DeciliterPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / (1000 * 86400)) * 1e-1d, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.DeciliterPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / (1000 * 3600)) * 1e-1d, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.DeciliterPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / (1000 * 60)) * 1e-1d, VolumeFlowUnit.CubicMeterPerSecond), (VolumeFlowUnit.DeciliterPerSecond, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 1000) * 1e-1d, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.HectoliterPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 86400000) * 1e2d, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.HectoliterPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 3600000.000) * 1e2d, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.HectoliterPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 60000.00000) * 1e2d, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.HectoliterPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / (1000 * 86400)) * 1e2d, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.HectoliterPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / (1000 * 3600)) * 1e2d, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.HectoliterPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / (1000 * 60)) * 1e2d, VolumeFlowUnit.CubicMeterPerSecond), (VolumeFlowUnit.HectoliterPerSecond, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 1000) * 1e2d, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.KiloliterPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 86400000) * 1e3d, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.KiloliterPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 3600000.000) * 1e3d, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.KiloliterPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 60000.00000) * 1e3d, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.KiloliterPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / (1000 * 86400)) * 1e3d, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.KiloliterPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / (1000 * 3600)) * 1e3d, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.KiloliterPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / (1000 * 60)) * 1e3d, VolumeFlowUnit.CubicMeterPerSecond), (VolumeFlowUnit.KiloliterPerSecond, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 1000) * 1e3d, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.KilousGallonPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value / 15.850323141489, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.LiterPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value / 86400000, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.LiterPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value / 3600000.000, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.LiterPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value / 60000.00000, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.KilousGallonPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 1000 * 0.003785411784 / 60, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.LiterPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value / (1000 * 86400), VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.LiterPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value / (1000 * 3600), VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.LiterPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value / (1000 * 60), VolumeFlowUnit.CubicMeterPerSecond), (VolumeFlowUnit.LiterPerSecond, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value / 1000, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.MegaliterPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 86400000) * 1e6d, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.MegaliterPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 3600000.000) * 1e6d, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.MegaliterPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 60000.00000) * 1e6d, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.MegaliterPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / (1000 * 86400)) * 1e6d, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.MegaliterPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / (1000 * 3600)) * 1e6d, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.MegaliterPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / (1000 * 60)) * 1e6d, VolumeFlowUnit.CubicMeterPerSecond), (VolumeFlowUnit.MegaliterPerSecond, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 1000) * 1e6d, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.MegaukGallonPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 19005304) * 1e6d, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.MegaukGallonPerSecond, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 219.969) * 1e6d, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.MegausGallonPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 22824465.227) * 1e6d, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.MicroliterPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 86400000) * 1e-6d, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.MicroliterPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 3600000.000) * 1e-6d, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.MicroliterPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 60000.00000) * 1e-6d, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.MegaukGallonPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value * 0.00454609 / 86400) * 1e6d, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.MegaukGallonPerSecond, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value * 0.00454609) * 1e6d, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.MegausGallonPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value * 0.003785411784 / 86400) * 1e6d, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.MicroliterPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / (1000 * 86400)) * 1e-6d, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.MicroliterPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / (1000 * 3600)) * 1e-6d, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.MicroliterPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / (1000 * 60)) * 1e-6d, VolumeFlowUnit.CubicMeterPerSecond), (VolumeFlowUnit.MicroliterPerSecond, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 1000) * 1e-6d, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.MilliliterPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 86400000) * 1e-3d, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.MilliliterPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 3600000.000) * 1e-3d, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.MilliliterPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 60000.00000) * 1e-3d, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.MilliliterPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / (1000 * 86400)) * 1e-3d, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.MilliliterPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / (1000 * 3600)) * 1e-3d, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.MilliliterPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / (1000 * 60)) * 1e-3d, VolumeFlowUnit.CubicMeterPerSecond), (VolumeFlowUnit.MilliliterPerSecond, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 1000) * 1e-3d, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.MillionUsGallonPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value / 22.824465227, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.NanoliterPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 86400000) * 1e-9d, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.NanoliterPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 3600000.000) * 1e-9d, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.NanoliterPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 60000.00000) * 1e-9d, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.MillionUsGallonPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 1e6 * 0.003785411784 / 86400, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.NanoliterPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / (1000 * 86400)) * 1e-9d, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.NanoliterPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / (1000 * 3600)) * 1e-9d, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.NanoliterPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / (1000 * 60)) * 1e-9d, VolumeFlowUnit.CubicMeterPerSecond), (VolumeFlowUnit.NanoliterPerSecond, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow((_value / 1000) * 1e-9d, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.OilBarrelPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 1.8401307283333333333333333333333e-6, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.OilBarrelPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 4.41631375e-5, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.OilBarrelPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 2.64978825e-3, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.OilBarrelPerSecond, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value / 6.28981, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.UkGallonPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value / 19005304, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.UkGallonPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value / 791887.667, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.UkGallonPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value / 13198.2, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.UkGallonPerSecond, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value / 219.969, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.UsGallonPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value / 22824465.227, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.UsGallonPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value / 951019.38848933424, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.UsGallonPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value / 15850.323141489, VolumeFlowUnit.CubicMeterPerSecond), - (VolumeFlowUnit.UsGallonPerSecond, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value / 264.1720523581484, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.OilBarrelPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 0.158987294928 / 86400, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.OilBarrelPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 0.158987294928 / 3600, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.OilBarrelPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 0.158987294928 / 60, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.OilBarrelPerSecond, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 0.158987294928, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.UkGallonPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 0.00454609 / 86400, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.UkGallonPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 0.00454609 / 3600, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.UkGallonPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 0.00454609 / 60, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.UkGallonPerSecond, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 0.00454609, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.UsGallonPerDay, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 0.003785411784 / 86400, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.UsGallonPerHour, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 0.003785411784 / 3600, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.UsGallonPerMinute, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 0.003785411784 / 60, VolumeFlowUnit.CubicMeterPerSecond), + (VolumeFlowUnit.UsGallonPerSecond, VolumeFlowUnit.CubicMeterPerSecond) => new VolumeFlow(_value * 0.003785411784, VolumeFlowUnit.CubicMeterPerSecond), // BaseUnit -> VolumeFlowUnit - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.AcreFootPerDay) => new VolumeFlow(_value * 70.0457, VolumeFlowUnit.AcreFootPerDay), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.AcreFootPerHour) => new VolumeFlow(_value * 2.91857, VolumeFlowUnit.AcreFootPerHour), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.AcreFootPerMinute) => new VolumeFlow(_value * 0.0486427916, VolumeFlowUnit.AcreFootPerMinute), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.AcreFootPerSecond) => new VolumeFlow(_value * 0.000810713194, VolumeFlowUnit.AcreFootPerSecond), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.CentiliterPerDay) => new VolumeFlow((_value * 86400000) / 1e-2d, VolumeFlowUnit.CentiliterPerDay), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.CentiliterPerHour) => new VolumeFlow((_value * 3600000.000) / 1e-2d, VolumeFlowUnit.CentiliterPerHour), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.CentiliterPerMinute) => new VolumeFlow((_value * 60000.00000) / 1e-2d, VolumeFlowUnit.CentiliterPerMinute), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.AcreFootPerDay) => new VolumeFlow(_value / (1233.48183754752 / 86400), VolumeFlowUnit.AcreFootPerDay), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.AcreFootPerHour) => new VolumeFlow(_value / (1233.48183754752 / 3600), VolumeFlowUnit.AcreFootPerHour), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.AcreFootPerMinute) => new VolumeFlow(_value / (1233.48183754752 / 60), VolumeFlowUnit.AcreFootPerMinute), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.AcreFootPerSecond) => new VolumeFlow(_value / 1233.48183754752, VolumeFlowUnit.AcreFootPerSecond), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.CentiliterPerDay) => new VolumeFlow((_value * (1000 * 86400)) / 1e-2d, VolumeFlowUnit.CentiliterPerDay), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.CentiliterPerHour) => new VolumeFlow((_value * (1000 * 3600)) / 1e-2d, VolumeFlowUnit.CentiliterPerHour), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.CentiliterPerMinute) => new VolumeFlow((_value * (1000 * 60)) / 1e-2d, VolumeFlowUnit.CentiliterPerMinute), (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.CentiliterPerSecond) => new VolumeFlow((_value * 1000) / 1e-2d, VolumeFlowUnit.CentiliterPerSecond), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.CubicCentimeterPerMinute) => new VolumeFlow(_value / 1.6666666666667e-8, VolumeFlowUnit.CubicCentimeterPerMinute), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.CubicCentimeterPerMinute) => new VolumeFlow(_value / (1e-6 / 60), VolumeFlowUnit.CubicCentimeterPerMinute), (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.CubicDecimeterPerMinute) => new VolumeFlow(_value * 60000.00000, VolumeFlowUnit.CubicDecimeterPerMinute), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.CubicFootPerHour) => new VolumeFlow(_value / 7.8657907199999087346816086183876e-6, VolumeFlowUnit.CubicFootPerHour), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.CubicFootPerMinute) => new VolumeFlow(_value * 2118.88000326, VolumeFlowUnit.CubicFootPerMinute), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.CubicFootPerSecond) => new VolumeFlow(_value * 35.314666721, VolumeFlowUnit.CubicFootPerSecond), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.CubicFootPerHour) => new VolumeFlow(_value / (0.028316846592 / 3600), VolumeFlowUnit.CubicFootPerHour), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.CubicFootPerMinute) => new VolumeFlow(_value / (0.028316846592 / 60), VolumeFlowUnit.CubicFootPerMinute), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.CubicFootPerSecond) => new VolumeFlow(_value / 0.028316846592, VolumeFlowUnit.CubicFootPerSecond), (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.CubicMeterPerDay) => new VolumeFlow(_value * 86400, VolumeFlowUnit.CubicMeterPerDay), (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.CubicMeterPerHour) => new VolumeFlow(_value * 3600, VolumeFlowUnit.CubicMeterPerHour), (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.CubicMeterPerMinute) => new VolumeFlow(_value * 60, VolumeFlowUnit.CubicMeterPerMinute), (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.CubicMillimeterPerSecond) => new VolumeFlow(_value / 1e-9, VolumeFlowUnit.CubicMillimeterPerSecond), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.CubicYardPerDay) => new VolumeFlow(_value * 113007, VolumeFlowUnit.CubicYardPerDay), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.CubicYardPerHour) => new VolumeFlow(_value / 2.1237634944E-4, VolumeFlowUnit.CubicYardPerHour), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.CubicYardPerMinute) => new VolumeFlow(_value / 0.0127425809664, VolumeFlowUnit.CubicYardPerMinute), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.CubicYardPerDay) => new VolumeFlow(_value / (0.764554857984 / 86400), VolumeFlowUnit.CubicYardPerDay), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.CubicYardPerHour) => new VolumeFlow(_value / (0.764554857984 / 3600), VolumeFlowUnit.CubicYardPerHour), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.CubicYardPerMinute) => new VolumeFlow(_value / (0.764554857984 / 60), VolumeFlowUnit.CubicYardPerMinute), (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.CubicYardPerSecond) => new VolumeFlow(_value / 0.764554857984, VolumeFlowUnit.CubicYardPerSecond), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.DecaliterPerDay) => new VolumeFlow((_value * 86400000) / 1e1d, VolumeFlowUnit.DecaliterPerDay), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.DecaliterPerHour) => new VolumeFlow((_value * 3600000.000) / 1e1d, VolumeFlowUnit.DecaliterPerHour), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.DecaliterPerMinute) => new VolumeFlow((_value * 60000.00000) / 1e1d, VolumeFlowUnit.DecaliterPerMinute), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.DecaliterPerDay) => new VolumeFlow((_value * (1000 * 86400)) / 1e1d, VolumeFlowUnit.DecaliterPerDay), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.DecaliterPerHour) => new VolumeFlow((_value * (1000 * 3600)) / 1e1d, VolumeFlowUnit.DecaliterPerHour), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.DecaliterPerMinute) => new VolumeFlow((_value * (1000 * 60)) / 1e1d, VolumeFlowUnit.DecaliterPerMinute), (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.DecaliterPerSecond) => new VolumeFlow((_value * 1000) / 1e1d, VolumeFlowUnit.DecaliterPerSecond), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.DeciliterPerDay) => new VolumeFlow((_value * 86400000) / 1e-1d, VolumeFlowUnit.DeciliterPerDay), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.DeciliterPerHour) => new VolumeFlow((_value * 3600000.000) / 1e-1d, VolumeFlowUnit.DeciliterPerHour), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.DeciliterPerMinute) => new VolumeFlow((_value * 60000.00000) / 1e-1d, VolumeFlowUnit.DeciliterPerMinute), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.DeciliterPerDay) => new VolumeFlow((_value * (1000 * 86400)) / 1e-1d, VolumeFlowUnit.DeciliterPerDay), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.DeciliterPerHour) => new VolumeFlow((_value * (1000 * 3600)) / 1e-1d, VolumeFlowUnit.DeciliterPerHour), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.DeciliterPerMinute) => new VolumeFlow((_value * (1000 * 60)) / 1e-1d, VolumeFlowUnit.DeciliterPerMinute), (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.DeciliterPerSecond) => new VolumeFlow((_value * 1000) / 1e-1d, VolumeFlowUnit.DeciliterPerSecond), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.HectoliterPerDay) => new VolumeFlow((_value * 86400000) / 1e2d, VolumeFlowUnit.HectoliterPerDay), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.HectoliterPerHour) => new VolumeFlow((_value * 3600000.000) / 1e2d, VolumeFlowUnit.HectoliterPerHour), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.HectoliterPerMinute) => new VolumeFlow((_value * 60000.00000) / 1e2d, VolumeFlowUnit.HectoliterPerMinute), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.HectoliterPerDay) => new VolumeFlow((_value * (1000 * 86400)) / 1e2d, VolumeFlowUnit.HectoliterPerDay), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.HectoliterPerHour) => new VolumeFlow((_value * (1000 * 3600)) / 1e2d, VolumeFlowUnit.HectoliterPerHour), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.HectoliterPerMinute) => new VolumeFlow((_value * (1000 * 60)) / 1e2d, VolumeFlowUnit.HectoliterPerMinute), (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.HectoliterPerSecond) => new VolumeFlow((_value * 1000) / 1e2d, VolumeFlowUnit.HectoliterPerSecond), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.KiloliterPerDay) => new VolumeFlow((_value * 86400000) / 1e3d, VolumeFlowUnit.KiloliterPerDay), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.KiloliterPerHour) => new VolumeFlow((_value * 3600000.000) / 1e3d, VolumeFlowUnit.KiloliterPerHour), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.KiloliterPerMinute) => new VolumeFlow((_value * 60000.00000) / 1e3d, VolumeFlowUnit.KiloliterPerMinute), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.KiloliterPerDay) => new VolumeFlow((_value * (1000 * 86400)) / 1e3d, VolumeFlowUnit.KiloliterPerDay), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.KiloliterPerHour) => new VolumeFlow((_value * (1000 * 3600)) / 1e3d, VolumeFlowUnit.KiloliterPerHour), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.KiloliterPerMinute) => new VolumeFlow((_value * (1000 * 60)) / 1e3d, VolumeFlowUnit.KiloliterPerMinute), (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.KiloliterPerSecond) => new VolumeFlow((_value * 1000) / 1e3d, VolumeFlowUnit.KiloliterPerSecond), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.KilousGallonPerMinute) => new VolumeFlow(_value * 15.850323141489, VolumeFlowUnit.KilousGallonPerMinute), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.LiterPerDay) => new VolumeFlow(_value * 86400000, VolumeFlowUnit.LiterPerDay), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.LiterPerHour) => new VolumeFlow(_value * 3600000.000, VolumeFlowUnit.LiterPerHour), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.LiterPerMinute) => new VolumeFlow(_value * 60000.00000, VolumeFlowUnit.LiterPerMinute), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.KilousGallonPerMinute) => new VolumeFlow(_value / (1000 * 0.003785411784 / 60), VolumeFlowUnit.KilousGallonPerMinute), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.LiterPerDay) => new VolumeFlow(_value * (1000 * 86400), VolumeFlowUnit.LiterPerDay), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.LiterPerHour) => new VolumeFlow(_value * (1000 * 3600), VolumeFlowUnit.LiterPerHour), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.LiterPerMinute) => new VolumeFlow(_value * (1000 * 60), VolumeFlowUnit.LiterPerMinute), (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.LiterPerSecond) => new VolumeFlow(_value * 1000, VolumeFlowUnit.LiterPerSecond), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.MegaliterPerDay) => new VolumeFlow((_value * 86400000) / 1e6d, VolumeFlowUnit.MegaliterPerDay), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.MegaliterPerHour) => new VolumeFlow((_value * 3600000.000) / 1e6d, VolumeFlowUnit.MegaliterPerHour), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.MegaliterPerMinute) => new VolumeFlow((_value * 60000.00000) / 1e6d, VolumeFlowUnit.MegaliterPerMinute), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.MegaliterPerDay) => new VolumeFlow((_value * (1000 * 86400)) / 1e6d, VolumeFlowUnit.MegaliterPerDay), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.MegaliterPerHour) => new VolumeFlow((_value * (1000 * 3600)) / 1e6d, VolumeFlowUnit.MegaliterPerHour), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.MegaliterPerMinute) => new VolumeFlow((_value * (1000 * 60)) / 1e6d, VolumeFlowUnit.MegaliterPerMinute), (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.MegaliterPerSecond) => new VolumeFlow((_value * 1000) / 1e6d, VolumeFlowUnit.MegaliterPerSecond), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.MegaukGallonPerDay) => new VolumeFlow((_value * 19005304) / 1e6d, VolumeFlowUnit.MegaukGallonPerDay), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.MegaukGallonPerSecond) => new VolumeFlow((_value * 219.969) / 1e6d, VolumeFlowUnit.MegaukGallonPerSecond), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.MegausGallonPerDay) => new VolumeFlow((_value * 22824465.227) / 1e6d, VolumeFlowUnit.MegausGallonPerDay), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.MicroliterPerDay) => new VolumeFlow((_value * 86400000) / 1e-6d, VolumeFlowUnit.MicroliterPerDay), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.MicroliterPerHour) => new VolumeFlow((_value * 3600000.000) / 1e-6d, VolumeFlowUnit.MicroliterPerHour), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.MicroliterPerMinute) => new VolumeFlow((_value * 60000.00000) / 1e-6d, VolumeFlowUnit.MicroliterPerMinute), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.MegaukGallonPerDay) => new VolumeFlow((_value / (0.00454609 / 86400)) / 1e6d, VolumeFlowUnit.MegaukGallonPerDay), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.MegaukGallonPerSecond) => new VolumeFlow((_value / 0.00454609) / 1e6d, VolumeFlowUnit.MegaukGallonPerSecond), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.MegausGallonPerDay) => new VolumeFlow((_value / (0.003785411784 / 86400)) / 1e6d, VolumeFlowUnit.MegausGallonPerDay), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.MicroliterPerDay) => new VolumeFlow((_value * (1000 * 86400)) / 1e-6d, VolumeFlowUnit.MicroliterPerDay), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.MicroliterPerHour) => new VolumeFlow((_value * (1000 * 3600)) / 1e-6d, VolumeFlowUnit.MicroliterPerHour), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.MicroliterPerMinute) => new VolumeFlow((_value * (1000 * 60)) / 1e-6d, VolumeFlowUnit.MicroliterPerMinute), (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.MicroliterPerSecond) => new VolumeFlow((_value * 1000) / 1e-6d, VolumeFlowUnit.MicroliterPerSecond), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.MilliliterPerDay) => new VolumeFlow((_value * 86400000) / 1e-3d, VolumeFlowUnit.MilliliterPerDay), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.MilliliterPerHour) => new VolumeFlow((_value * 3600000.000) / 1e-3d, VolumeFlowUnit.MilliliterPerHour), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.MilliliterPerMinute) => new VolumeFlow((_value * 60000.00000) / 1e-3d, VolumeFlowUnit.MilliliterPerMinute), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.MilliliterPerDay) => new VolumeFlow((_value * (1000 * 86400)) / 1e-3d, VolumeFlowUnit.MilliliterPerDay), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.MilliliterPerHour) => new VolumeFlow((_value * (1000 * 3600)) / 1e-3d, VolumeFlowUnit.MilliliterPerHour), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.MilliliterPerMinute) => new VolumeFlow((_value * (1000 * 60)) / 1e-3d, VolumeFlowUnit.MilliliterPerMinute), (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.MilliliterPerSecond) => new VolumeFlow((_value * 1000) / 1e-3d, VolumeFlowUnit.MilliliterPerSecond), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.MillionUsGallonPerDay) => new VolumeFlow(_value * 22.824465227, VolumeFlowUnit.MillionUsGallonPerDay), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.NanoliterPerDay) => new VolumeFlow((_value * 86400000) / 1e-9d, VolumeFlowUnit.NanoliterPerDay), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.NanoliterPerHour) => new VolumeFlow((_value * 3600000.000) / 1e-9d, VolumeFlowUnit.NanoliterPerHour), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.NanoliterPerMinute) => new VolumeFlow((_value * 60000.00000) / 1e-9d, VolumeFlowUnit.NanoliterPerMinute), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.MillionUsGallonPerDay) => new VolumeFlow(_value / (1e6 * 0.003785411784 / 86400), VolumeFlowUnit.MillionUsGallonPerDay), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.NanoliterPerDay) => new VolumeFlow((_value * (1000 * 86400)) / 1e-9d, VolumeFlowUnit.NanoliterPerDay), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.NanoliterPerHour) => new VolumeFlow((_value * (1000 * 3600)) / 1e-9d, VolumeFlowUnit.NanoliterPerHour), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.NanoliterPerMinute) => new VolumeFlow((_value * (1000 * 60)) / 1e-9d, VolumeFlowUnit.NanoliterPerMinute), (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.NanoliterPerSecond) => new VolumeFlow((_value * 1000) / 1e-9d, VolumeFlowUnit.NanoliterPerSecond), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.OilBarrelPerDay) => new VolumeFlow(_value / 1.8401307283333333333333333333333e-6, VolumeFlowUnit.OilBarrelPerDay), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.OilBarrelPerHour) => new VolumeFlow(_value / 4.41631375e-5, VolumeFlowUnit.OilBarrelPerHour), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.OilBarrelPerMinute) => new VolumeFlow(_value / 2.64978825e-3, VolumeFlowUnit.OilBarrelPerMinute), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.OilBarrelPerSecond) => new VolumeFlow(_value * 6.28981, VolumeFlowUnit.OilBarrelPerSecond), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.UkGallonPerDay) => new VolumeFlow(_value * 19005304, VolumeFlowUnit.UkGallonPerDay), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.UkGallonPerHour) => new VolumeFlow(_value * 791887.667, VolumeFlowUnit.UkGallonPerHour), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.UkGallonPerMinute) => new VolumeFlow(_value * 13198.2, VolumeFlowUnit.UkGallonPerMinute), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.UkGallonPerSecond) => new VolumeFlow(_value * 219.969, VolumeFlowUnit.UkGallonPerSecond), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.UsGallonPerDay) => new VolumeFlow(_value * 22824465.227, VolumeFlowUnit.UsGallonPerDay), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.UsGallonPerHour) => new VolumeFlow(_value * 951019.38848933424, VolumeFlowUnit.UsGallonPerHour), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.UsGallonPerMinute) => new VolumeFlow(_value * 15850.323141489, VolumeFlowUnit.UsGallonPerMinute), - (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.UsGallonPerSecond) => new VolumeFlow(_value * 264.1720523581484, VolumeFlowUnit.UsGallonPerSecond), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.OilBarrelPerDay) => new VolumeFlow(_value / (0.158987294928 / 86400), VolumeFlowUnit.OilBarrelPerDay), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.OilBarrelPerHour) => new VolumeFlow(_value / (0.158987294928 / 3600), VolumeFlowUnit.OilBarrelPerHour), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.OilBarrelPerMinute) => new VolumeFlow(_value / (0.158987294928 / 60), VolumeFlowUnit.OilBarrelPerMinute), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.OilBarrelPerSecond) => new VolumeFlow(_value / 0.158987294928, VolumeFlowUnit.OilBarrelPerSecond), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.UkGallonPerDay) => new VolumeFlow(_value / (0.00454609 / 86400), VolumeFlowUnit.UkGallonPerDay), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.UkGallonPerHour) => new VolumeFlow(_value / (0.00454609 / 3600), VolumeFlowUnit.UkGallonPerHour), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.UkGallonPerMinute) => new VolumeFlow(_value / (0.00454609 / 60), VolumeFlowUnit.UkGallonPerMinute), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.UkGallonPerSecond) => new VolumeFlow(_value / 0.00454609, VolumeFlowUnit.UkGallonPerSecond), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.UsGallonPerDay) => new VolumeFlow(_value / (0.003785411784 / 86400), VolumeFlowUnit.UsGallonPerDay), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.UsGallonPerHour) => new VolumeFlow(_value / (0.003785411784 / 3600), VolumeFlowUnit.UsGallonPerHour), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.UsGallonPerMinute) => new VolumeFlow(_value / (0.003785411784 / 60), VolumeFlowUnit.UsGallonPerMinute), + (VolumeFlowUnit.CubicMeterPerSecond, VolumeFlowUnit.UsGallonPerSecond) => new VolumeFlow(_value / 0.003785411784, VolumeFlowUnit.UsGallonPerSecond), _ => null }; diff --git a/UnitsNet/GeneratedCode/Quantities/VolumeFlowPerArea.g.cs b/UnitsNet/GeneratedCode/Quantities/VolumeFlowPerArea.g.cs index f854f37730..1ef2505bec 100644 --- a/UnitsNet/GeneratedCode/Quantities/VolumeFlowPerArea.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/VolumeFlowPerArea.g.cs @@ -709,10 +709,10 @@ private bool TryToUnit(VolumeFlowPerAreaUnit unit, [NotNullWhen(true)] out Volum VolumeFlowPerArea? convertedOrNull = (Unit, unit) switch { // VolumeFlowPerAreaUnit -> BaseUnit - (VolumeFlowPerAreaUnit.CubicFootPerMinutePerSquareFoot, VolumeFlowPerAreaUnit.CubicMeterPerSecondPerSquareMeter) => new VolumeFlowPerArea(_value / 196.850394, VolumeFlowPerAreaUnit.CubicMeterPerSecondPerSquareMeter), + (VolumeFlowPerAreaUnit.CubicFootPerMinutePerSquareFoot, VolumeFlowPerAreaUnit.CubicMeterPerSecondPerSquareMeter) => new VolumeFlowPerArea(_value * (0.028316846592 / 60) / 9.290304e-2, VolumeFlowPerAreaUnit.CubicMeterPerSecondPerSquareMeter), // BaseUnit -> VolumeFlowPerAreaUnit - (VolumeFlowPerAreaUnit.CubicMeterPerSecondPerSquareMeter, VolumeFlowPerAreaUnit.CubicFootPerMinutePerSquareFoot) => new VolumeFlowPerArea(_value * 196.850394, VolumeFlowPerAreaUnit.CubicFootPerMinutePerSquareFoot), + (VolumeFlowPerAreaUnit.CubicMeterPerSecondPerSquareMeter, VolumeFlowPerAreaUnit.CubicFootPerMinutePerSquareFoot) => new VolumeFlowPerArea(_value * 9.290304e-2 / (0.028316846592 / 60), VolumeFlowPerAreaUnit.CubicFootPerMinutePerSquareFoot), _ => null }; diff --git a/UnitsNet/GeneratedCode/Quantities/VolumePerLength.g.cs b/UnitsNet/GeneratedCode/Quantities/VolumePerLength.g.cs index 2f0a7fdc63..3b7859334d 100644 --- a/UnitsNet/GeneratedCode/Quantities/VolumePerLength.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/VolumePerLength.g.cs @@ -821,24 +821,24 @@ private bool TryToUnit(VolumePerLengthUnit unit, [NotNullWhen(true)] out VolumeP VolumePerLength? convertedOrNull = (Unit, unit) switch { // VolumePerLengthUnit -> BaseUnit - (VolumePerLengthUnit.CubicYardPerFoot, VolumePerLengthUnit.CubicMeterPerMeter) => new VolumePerLength(_value * 2.50838208, VolumePerLengthUnit.CubicMeterPerMeter), - (VolumePerLengthUnit.CubicYardPerUsSurveyFoot, VolumePerLengthUnit.CubicMeterPerMeter) => new VolumePerLength(_value * 2.50837706323584, VolumePerLengthUnit.CubicMeterPerMeter), - (VolumePerLengthUnit.ImperialGallonPerMile, VolumePerLengthUnit.CubicMeterPerMeter) => new VolumePerLength(_value / (1000 * 1609.344 / 4.54609), VolumePerLengthUnit.CubicMeterPerMeter), + (VolumePerLengthUnit.CubicYardPerFoot, VolumePerLengthUnit.CubicMeterPerMeter) => new VolumePerLength(_value * 0.764554857984 / 0.3048, VolumePerLengthUnit.CubicMeterPerMeter), + (VolumePerLengthUnit.CubicYardPerUsSurveyFoot, VolumePerLengthUnit.CubicMeterPerMeter) => new VolumePerLength(_value * 0.764554857984 * 3937 / 1200, VolumePerLengthUnit.CubicMeterPerMeter), + (VolumePerLengthUnit.ImperialGallonPerMile, VolumePerLengthUnit.CubicMeterPerMeter) => new VolumePerLength(_value * 0.00454609 / 1609.344, VolumePerLengthUnit.CubicMeterPerMeter), (VolumePerLengthUnit.LiterPerKilometer, VolumePerLengthUnit.CubicMeterPerMeter) => new VolumePerLength(_value / 1e6, VolumePerLengthUnit.CubicMeterPerMeter), (VolumePerLengthUnit.LiterPerMeter, VolumePerLengthUnit.CubicMeterPerMeter) => new VolumePerLength(_value / 1000, VolumePerLengthUnit.CubicMeterPerMeter), (VolumePerLengthUnit.LiterPerMillimeter, VolumePerLengthUnit.CubicMeterPerMeter) => new VolumePerLength(_value, VolumePerLengthUnit.CubicMeterPerMeter), - (VolumePerLengthUnit.OilBarrelPerFoot, VolumePerLengthUnit.CubicMeterPerMeter) => new VolumePerLength(_value / 1.91713408, VolumePerLengthUnit.CubicMeterPerMeter), - (VolumePerLengthUnit.UsGallonPerMile, VolumePerLengthUnit.CubicMeterPerMeter) => new VolumePerLength(_value / (1000 * 1609.344 / 3.785411784), VolumePerLengthUnit.CubicMeterPerMeter), + (VolumePerLengthUnit.OilBarrelPerFoot, VolumePerLengthUnit.CubicMeterPerMeter) => new VolumePerLength(_value * 0.158987294928 / 0.3048, VolumePerLengthUnit.CubicMeterPerMeter), + (VolumePerLengthUnit.UsGallonPerMile, VolumePerLengthUnit.CubicMeterPerMeter) => new VolumePerLength(_value * 0.003785411784 / 1609.344, VolumePerLengthUnit.CubicMeterPerMeter), // BaseUnit -> VolumePerLengthUnit - (VolumePerLengthUnit.CubicMeterPerMeter, VolumePerLengthUnit.CubicYardPerFoot) => new VolumePerLength(_value / 2.50838208, VolumePerLengthUnit.CubicYardPerFoot), - (VolumePerLengthUnit.CubicMeterPerMeter, VolumePerLengthUnit.CubicYardPerUsSurveyFoot) => new VolumePerLength(_value / 2.50837706323584, VolumePerLengthUnit.CubicYardPerUsSurveyFoot), - (VolumePerLengthUnit.CubicMeterPerMeter, VolumePerLengthUnit.ImperialGallonPerMile) => new VolumePerLength(_value * (1000 * 1609.344 / 4.54609), VolumePerLengthUnit.ImperialGallonPerMile), + (VolumePerLengthUnit.CubicMeterPerMeter, VolumePerLengthUnit.CubicYardPerFoot) => new VolumePerLength(_value * 0.3048 / 0.764554857984, VolumePerLengthUnit.CubicYardPerFoot), + (VolumePerLengthUnit.CubicMeterPerMeter, VolumePerLengthUnit.CubicYardPerUsSurveyFoot) => new VolumePerLength(_value * 1200 / (0.764554857984 * 3937), VolumePerLengthUnit.CubicYardPerUsSurveyFoot), + (VolumePerLengthUnit.CubicMeterPerMeter, VolumePerLengthUnit.ImperialGallonPerMile) => new VolumePerLength(_value * 1609.344 / 0.00454609, VolumePerLengthUnit.ImperialGallonPerMile), (VolumePerLengthUnit.CubicMeterPerMeter, VolumePerLengthUnit.LiterPerKilometer) => new VolumePerLength(_value * 1e6, VolumePerLengthUnit.LiterPerKilometer), (VolumePerLengthUnit.CubicMeterPerMeter, VolumePerLengthUnit.LiterPerMeter) => new VolumePerLength(_value * 1000, VolumePerLengthUnit.LiterPerMeter), (VolumePerLengthUnit.CubicMeterPerMeter, VolumePerLengthUnit.LiterPerMillimeter) => new VolumePerLength(_value, VolumePerLengthUnit.LiterPerMillimeter), - (VolumePerLengthUnit.CubicMeterPerMeter, VolumePerLengthUnit.OilBarrelPerFoot) => new VolumePerLength(_value * 1.91713408, VolumePerLengthUnit.OilBarrelPerFoot), - (VolumePerLengthUnit.CubicMeterPerMeter, VolumePerLengthUnit.UsGallonPerMile) => new VolumePerLength(_value * (1000 * 1609.344 / 3.785411784), VolumePerLengthUnit.UsGallonPerMile), + (VolumePerLengthUnit.CubicMeterPerMeter, VolumePerLengthUnit.OilBarrelPerFoot) => new VolumePerLength(_value * 0.3048 / 0.158987294928, VolumePerLengthUnit.OilBarrelPerFoot), + (VolumePerLengthUnit.CubicMeterPerMeter, VolumePerLengthUnit.UsGallonPerMile) => new VolumePerLength(_value * 1609.344 / 0.003785411784, VolumePerLengthUnit.UsGallonPerMile), _ => null }; diff --git a/UnitsNet/GeneratedCode/Quantities/WarpingMomentOfInertia.g.cs b/UnitsNet/GeneratedCode/Quantities/WarpingMomentOfInertia.g.cs index 6dcd2c45ff..990b5b876a 100644 --- a/UnitsNet/GeneratedCode/Quantities/WarpingMomentOfInertia.g.cs +++ b/UnitsNet/GeneratedCode/Quantities/WarpingMomentOfInertia.g.cs @@ -775,15 +775,15 @@ private bool TryToUnit(WarpingMomentOfInertiaUnit unit, [NotNullWhen(true)] out // WarpingMomentOfInertiaUnit -> BaseUnit (WarpingMomentOfInertiaUnit.CentimeterToTheSixth, WarpingMomentOfInertiaUnit.MeterToTheSixth) => new WarpingMomentOfInertia(_value / 1e12, WarpingMomentOfInertiaUnit.MeterToTheSixth), (WarpingMomentOfInertiaUnit.DecimeterToTheSixth, WarpingMomentOfInertiaUnit.MeterToTheSixth) => new WarpingMomentOfInertia(_value / 1e6, WarpingMomentOfInertiaUnit.MeterToTheSixth), - (WarpingMomentOfInertiaUnit.FootToTheSixth, WarpingMomentOfInertiaUnit.MeterToTheSixth) => new WarpingMomentOfInertia(_value * Math.Pow(0.3048, 6), WarpingMomentOfInertiaUnit.MeterToTheSixth), - (WarpingMomentOfInertiaUnit.InchToTheSixth, WarpingMomentOfInertiaUnit.MeterToTheSixth) => new WarpingMomentOfInertia(_value * Math.Pow(2.54e-2, 6), WarpingMomentOfInertiaUnit.MeterToTheSixth), + (WarpingMomentOfInertiaUnit.FootToTheSixth, WarpingMomentOfInertiaUnit.MeterToTheSixth) => new WarpingMomentOfInertia(_value * 0.000801843800914862014464, WarpingMomentOfInertiaUnit.MeterToTheSixth), + (WarpingMomentOfInertiaUnit.InchToTheSixth, WarpingMomentOfInertiaUnit.MeterToTheSixth) => new WarpingMomentOfInertia(_value * 0.000000000268535866540096, WarpingMomentOfInertiaUnit.MeterToTheSixth), (WarpingMomentOfInertiaUnit.MillimeterToTheSixth, WarpingMomentOfInertiaUnit.MeterToTheSixth) => new WarpingMomentOfInertia(_value / 1e18, WarpingMomentOfInertiaUnit.MeterToTheSixth), // BaseUnit -> WarpingMomentOfInertiaUnit (WarpingMomentOfInertiaUnit.MeterToTheSixth, WarpingMomentOfInertiaUnit.CentimeterToTheSixth) => new WarpingMomentOfInertia(_value * 1e12, WarpingMomentOfInertiaUnit.CentimeterToTheSixth), (WarpingMomentOfInertiaUnit.MeterToTheSixth, WarpingMomentOfInertiaUnit.DecimeterToTheSixth) => new WarpingMomentOfInertia(_value * 1e6, WarpingMomentOfInertiaUnit.DecimeterToTheSixth), - (WarpingMomentOfInertiaUnit.MeterToTheSixth, WarpingMomentOfInertiaUnit.FootToTheSixth) => new WarpingMomentOfInertia(_value / Math.Pow(0.3048, 6), WarpingMomentOfInertiaUnit.FootToTheSixth), - (WarpingMomentOfInertiaUnit.MeterToTheSixth, WarpingMomentOfInertiaUnit.InchToTheSixth) => new WarpingMomentOfInertia(_value / Math.Pow(2.54e-2, 6), WarpingMomentOfInertiaUnit.InchToTheSixth), + (WarpingMomentOfInertiaUnit.MeterToTheSixth, WarpingMomentOfInertiaUnit.FootToTheSixth) => new WarpingMomentOfInertia(_value / 0.000801843800914862014464, WarpingMomentOfInertiaUnit.FootToTheSixth), + (WarpingMomentOfInertiaUnit.MeterToTheSixth, WarpingMomentOfInertiaUnit.InchToTheSixth) => new WarpingMomentOfInertia(_value / 0.000000000268535866540096, WarpingMomentOfInertiaUnit.InchToTheSixth), (WarpingMomentOfInertiaUnit.MeterToTheSixth, WarpingMomentOfInertiaUnit.MillimeterToTheSixth) => new WarpingMomentOfInertia(_value * 1e18, WarpingMomentOfInertiaUnit.MillimeterToTheSixth), _ => null diff --git a/UnitsNet/GeneratedCode/Units/AccelerationUnit.g.cs b/UnitsNet/GeneratedCode/Units/AccelerationUnit.g.cs index b4f1c48938..a514c50ff7 100644 --- a/UnitsNet/GeneratedCode/Units/AccelerationUnit.g.cs +++ b/UnitsNet/GeneratedCode/Units/AccelerationUnit.g.cs @@ -30,7 +30,17 @@ public enum AccelerationUnit FootPerSecondSquared = 3, InchPerSecondSquared = 4, KilometerPerSecondSquared = 5, + + /// + /// The knot (/nɒt/) is a unit of speed equal to one nautical mile per hour, exactly 1.852 km/h (approximately 1.151 mph or 0.514 m/s). + /// + /// https://en.wikipedia.org/wiki/Knot_(unit) KnotPerHour = 6, + + /// + /// The knot (/nɒt/) is a unit of speed equal to one nautical mile per hour, exactly 1.852 km/h (approximately 1.151 mph or 0.514 m/s). + /// + /// https://en.wikipedia.org/wiki/Knot_(unit) KnotPerMinute = 7, KnotPerSecond = 8, MeterPerSecondSquared = 9, diff --git a/UnitsNet/GeneratedCode/Units/DensityUnit.g.cs b/UnitsNet/GeneratedCode/Units/DensityUnit.g.cs index 70b4e91fc7..638b21b01a 100644 --- a/UnitsNet/GeneratedCode/Units/DensityUnit.g.cs +++ b/UnitsNet/GeneratedCode/Units/DensityUnit.g.cs @@ -70,7 +70,7 @@ public enum DensityUnit PoundPerCubicMillimeter = 39, /// - /// Calculated from the definition of pound and yard compared to metric kilogram and meter. + /// Calculated from the definition of pound and Cubic yard compared to metric kilogram and meter. /// PoundPerCubicYard = 58, PoundPerImperialGallon = 40, diff --git a/UnitsNet/GeneratedCode/Units/EnergyUnit.g.cs b/UnitsNet/GeneratedCode/Units/EnergyUnit.g.cs index 392f8f736a..87b58d3a8a 100644 --- a/UnitsNet/GeneratedCode/Units/EnergyUnit.g.cs +++ b/UnitsNet/GeneratedCode/Units/EnergyUnit.g.cs @@ -30,14 +30,34 @@ public enum EnergyUnit DecathermEc = 3, DecathermImperial = 4, DecathermUs = 5, + + /// + /// In physics, an electronvolt (symbol eV, also written electron-volt and electron volt) is the measure of an amount of kinetic energy gained by a single electron accelerating from rest through an electric potential difference of one volt in vacuum. When used as a unit of energy, the numerical value of 1 eV in joules (symbol J) is equivalent to the numerical value of the charge of an electron in coulombs (symbol C). Under the 2019 redefinition of the SI base units, this sets 1 eV equal to the exact value 1.602176634×10−19 J. + /// + /// https://en.wikipedia.org/wiki/Electronvolt ElectronVolt = 6, + + /// + /// The erg is a unit of energy equal to 10−7 joules (100 nJ). It originated in the Centimetre–gram–second system of units (CGS). It has the symbol erg. The erg is not an SI unit. Its name is derived from ergon (ἔργον), a Greek word meaning 'work' or 'task'. + /// + /// https://en.wikipedia.org/wiki/Erg Erg = 7, + + /// + /// A pound-foot (lb⋅ft), abbreviated from pound-force foot (lbf · ft), is a unit of torque representing one pound of force acting at a perpendicular distance of one foot from a pivot point. Conversely one foot pound-force (ft · lbf) is the moment about an axis that applies one pound-force at a radius of one foot. + /// + /// https://en.wikipedia.org/wiki/Pound-foot_(torque) FootPound = 8, GigabritishThermalUnit = 9, GigaelectronVolt = 10, Gigajoule = 11, GigawattDay = 12, GigawattHour = 13, + + /// + /// A horsepower-hour (symbol: hp⋅h) is an outdated unit of energy, not used in the International System of Units. The unit represents an amount of work a horse is supposed capable of delivering during an hour (1 horsepower integrated over a time interval of an hour). + /// + /// https://en.wikipedia.org/wiki/Horsepower-hour HorsepowerHour = 14, Joule = 15, KilobritishThermalUnit = 16, @@ -60,8 +80,23 @@ public enum EnergyUnit Terajoule = 37, TerawattDay = 30, TerawattHour = 31, + + /// + /// The therm (symbol, thm) is a non-SI unit of heat energy equal to 100,000 British thermal units (BTU), and approximately 105 megajoules, 29.3 kilowatt-hours, 25,200 kilocalories and 25.2 thermies. One therm is the energy content of approximately 100 cubic feet (2.83 cubic metres) of natural gas at standard temperature and pressure. However, the BTU is not standardised worldwide, with slightly different values in the EU, UK, and United States, meaning that the energy content of the therm also varies by territory. + /// + /// https://en.wikipedia.org/wiki/Therm ThermEc = 32, + + /// + /// The therm (symbol, thm) is a non-SI unit of heat energy equal to 100,000 British thermal units (BTU), and approximately 105 megajoules, 29.3 kilowatt-hours, 25,200 kilocalories and 25.2 thermies. One therm is the energy content of approximately 100 cubic feet (2.83 cubic metres) of natural gas at standard temperature and pressure. However, the BTU is not standardised worldwide, with slightly different values in the EU, UK, and United States, meaning that the energy content of the therm also varies by territory. + /// + /// https://en.wikipedia.org/wiki/Therm ThermImperial = 33, + + /// + /// The therm (symbol, thm) is a non-SI unit of heat energy equal to 100,000 British thermal units (BTU), and approximately 105 megajoules, 29.3 kilowatt-hours, 25,200 kilocalories and 25.2 thermies. One therm is the energy content of approximately 100 cubic feet (2.83 cubic metres) of natural gas at standard temperature and pressure. However, the BTU is not standardised worldwide, with slightly different values in the EU, UK, and United States, meaning that the energy content of the therm also varies by territory. + /// + /// https://en.wikipedia.org/wiki/Therm ThermUs = 34, WattDay = 35, WattHour = 36, diff --git a/UnitsNet/GeneratedCode/Units/FrequencyUnit.g.cs b/UnitsNet/GeneratedCode/Units/FrequencyUnit.g.cs index 370d1d3ccd..9bd8b9aa0e 100644 --- a/UnitsNet/GeneratedCode/Units/FrequencyUnit.g.cs +++ b/UnitsNet/GeneratedCode/Units/FrequencyUnit.g.cs @@ -36,6 +36,11 @@ public enum FrequencyUnit Microhertz = 16, Millihertz = 21, PerSecond = 9, + + /// + /// In SI units, angular frequency is normally presented with the unit radian per second, and need not express a rotational value. The unit hertz (Hz) is dimensionally equivalent, but by convention it is only used for frequency f, never for angular frequency ω. This convention is used to help avoid the confusion that arises when dealing with quantities such as frequency and angular quantities because the units of measure (such as cycle or radian) are considered to be one and hence may be omitted when expressing quantities in terms of SI units. + /// + /// https://en.wikipedia.org/wiki/Angular_frequency RadianPerSecond = 10, Terahertz = 11, } diff --git a/UnitsNet/GeneratedCode/Units/LengthUnit.g.cs b/UnitsNet/GeneratedCode/Units/LengthUnit.g.cs index 9323e39ba8..0c92578089 100644 --- a/UnitsNet/GeneratedCode/Units/LengthUnit.g.cs +++ b/UnitsNet/GeneratedCode/Units/LengthUnit.g.cs @@ -38,6 +38,11 @@ public enum LengthUnit /// https://en.wikipedia.org/wiki/Astronomical_unit AstronomicalUnit = 2, Centimeter = 3, + + /// + /// The chain (abbreviated ch) is a unit of length equal to 66 feet (22 yards), used in both the US customary and Imperial unit systems. It is subdivided into 100 links. There are 10 chains in a furlong, and 80 chains in one statute mile. In metric terms, it is 20.1168 m long. + /// + /// https://en.wikipedia.org/wiki/Chain_(unit) Chain = 4, /// @@ -47,14 +52,39 @@ public enum LengthUnit DataMile = 5, Decameter = 6, Decimeter = 7, + + /// + /// The pica is a typographic unit of measure corresponding to approximately 1⁄6 of an inch, or from 1⁄68 to 1⁄73 of a foot. One pica is further divided into 12 points. + /// + /// https://en.wikipedia.org/wiki/Pica_(typography) DtpPica = 8, + + /// + /// The desktop publishing point (DTP) is defined as 1⁄72 of an inch (1/72 × 25.4 mm ≈ 0.353 mm) and, as with earlier American point sizes, is considered to be 1⁄12 of a pica. + /// + /// https://en.wikipedia.org/wiki/Point_(typography) DtpPoint = 9, Fathom = 10, Femtometer = 48, + + /// + /// The foot (pl. feet; standard symbol: ft) is a unit of length in the British imperial and United States customary systems of measurement. The prime symbol, ′, is commonly used to represent the foot. In both customary and imperial units, one foot comprises 12 inches, and one yard comprises three feet. Since an international agreement in 1959, the foot is defined as equal to exactly 0.3048 meters. + /// + /// https://en.wikipedia.org/wiki/Foot_(unit) Foot = 11, Gigameter = 44, + + /// + /// The hand is a non-SI unit of measurement of length standardized to 4 in (101.6 mm). It is used to measure the height of horses in many English-speaking countries, including Australia, Canada, Ireland, the United Kingdom, and the United States. It was originally based on the breadth of a human hand. + /// + /// https://en.wikipedia.org/wiki/Hand_(unit) Hand = 12, Hectometer = 13, + + /// + /// The inch (symbol: in or ″) is a unit of length in the British Imperial and the United States customary systems of measurement. It is equal to 1/36 yard or 1/12 of a foot. Derived from the Roman uncia ("twelfth"), the word inch is also sometimes used to translate similar units in other measurement systems, usually understood as deriving from the width of the human thumb. + /// + /// https://en.wikipedia.org/wiki/Inch Inch = 14, Kilofoot = 45, KilolightYear = 15, @@ -90,7 +120,17 @@ public enum LengthUnit /// https://en.wikipedia.org/wiki/Parsec Parsec = 29, Picometer = 43, + + /// + /// The American pica of 0.16604 inches (~4.217 mm) was established by the United States Type Founders' Association in 1886. In TeX one pica is 400⁄2409 of an inch. + /// + /// https://en.wikipedia.org/wiki/Pica_(typography) PrinterPica = 30, + + /// + /// In typography, the point is the smallest unit of measure. It is used for measuring font size, leading, and other items on a printed page. In modern times this size of the point has been approximated as exactly 1⁄72.27 (0.01383700013837) of the inch by Donald Knuth for the default unit of his TeX computer typesetting system and is thus sometimes known as the TeX point. + /// + /// https://en.wikipedia.org/wiki/Point_(typography) PrinterPoint = 31, Shackle = 32, @@ -99,6 +139,11 @@ public enum LengthUnit /// /// https://en.wikipedia.org/wiki/Stellar_classification SolarRadius = 33, + + /// + /// A twip (abbreviating "twentieth of a point" or "twentieth of an inch point") is a typographical measurement, defined as 1⁄20 of a typographical point. One twip is 1⁄1440 inch, or ~17.64 μm. + /// + /// https://en.wikipedia.org/wiki/Twip Twip = 34, /// diff --git a/UnitsNet/GeneratedCode/Units/MassUnit.g.cs b/UnitsNet/GeneratedCode/Units/MassUnit.g.cs index 40dca115f1..8bf661827e 100644 --- a/UnitsNet/GeneratedCode/Units/MassUnit.g.cs +++ b/UnitsNet/GeneratedCode/Units/MassUnit.g.cs @@ -106,6 +106,11 @@ public enum MassUnit /// /// http://en.wikipedia.org/wiki/Stone_(unit) Stone = 24, + + /// + /// The tonne is a unit of mass equal to 1,000 kilograms. It is a non-SI unit accepted for use with SI. It is also referred to as a metric ton in the United States to distinguish it from the non-metric units of the short ton (United States customary units) and the long ton (British imperial units). It is equivalent to approximately 2,204.6 pounds, 1.102 short tons, and 0.984 long tons. + /// + /// https://en.wikipedia.org/wiki/Tonne Tonne = 25, } diff --git a/UnitsNet/GeneratedCode/Units/PorousMediumPermeabilityUnit.g.cs b/UnitsNet/GeneratedCode/Units/PorousMediumPermeabilityUnit.g.cs index 9b57db7199..0ef3c52664 100644 --- a/UnitsNet/GeneratedCode/Units/PorousMediumPermeabilityUnit.g.cs +++ b/UnitsNet/GeneratedCode/Units/PorousMediumPermeabilityUnit.g.cs @@ -25,6 +25,11 @@ namespace UnitsNet.Units public enum PorousMediumPermeabilityUnit { + + /// + /// The darcy (or darcy unit) and millidarcy (md or mD) are units of permeability, named after Henry Darcy. They are not SI units, but they are widely used in petroleum engineering and geology. + /// + /// https://en.wikipedia.org/wiki/Darcy_(unit) Darcy = 1, Microdarcy = 2, Millidarcy = 3, diff --git a/UnitsNet/GeneratedCode/Units/VolumeUnit.g.cs b/UnitsNet/GeneratedCode/Units/VolumeUnit.g.cs index c35715428b..84dbccfb05 100644 --- a/UnitsNet/GeneratedCode/Units/VolumeUnit.g.cs +++ b/UnitsNet/GeneratedCode/Units/VolumeUnit.g.cs @@ -25,20 +25,55 @@ namespace UnitsNet.Units public enum VolumeUnit { + + /// + /// An acre-foot is 43,560 cubic feet (~1,233.5 m3). + /// + /// https://en.wikipedia.org/wiki/Acre-foot AcreFoot = 1, + + /// + /// In Australia, the definition of the tablespoon is 20 ml (0.70 imp fl oz). + /// + /// https://en.wikipedia.org/wiki/Tablespoon#Australia AuTablespoon = 2, + + /// + /// The board foot or board-foot is a unit of measurement for the volume of lumber in the United States and Canada. It equals the volume of a board that is one-foot (305 mm) in length, one-foot (305 mm) in width, and one-inch (25.4 mm) in thickness. + /// + /// https://en.wikipedia.org/wiki/Board_foot BoardFoot = 3, Centiliter = 4, CubicCentimeter = 5, CubicDecimeter = 6, + + /// + /// The cubic foot (symbol ft3 or cu ft) is an imperial and US customary (non-metric) unit of volume, used in the United States and the United Kingdom. It is defined as the volume of a cube with sides of one foot (0.3048 m) in length. + /// + /// https://en.wikipedia.org/wiki/Cubic_foot CubicFoot = 7, CubicHectometer = 8, + + /// + /// The cubic inch (symbol in3) is a unit of volume in the Imperial units and United States customary units systems. It is the volume of a cube with each of its three dimensions (length, width, and height) being one inch long which is equivalent to 1/231 of a US gallon. + /// + /// https://en.wikipedia.org/wiki/Cubic_yard CubicInch = 9, CubicKilometer = 10, CubicMeter = 11, CubicMicrometer = 12, + + /// + /// A cubic mile (abbreviation: cu mi or mi3) is an imperial and US customary (non-SI non-metric) unit of volume, used in the United States, Canada and the United Kingdom. It is defined as the volume of a cube with sides of 1 mile (63360 inches, 5280 feet, 1760 yards or ~1.609 kilometres) in length. + /// + /// https://en.wikipedia.org/wiki/Cubic_mile CubicMile = 13, CubicMillimeter = 14, + + /// + /// A cubic yard is an Imperial / U.S. customary (non-SI non-metric) unit of volume, used in Canada and the United States. It is defined as the volume of a cube with sides of 1 yard (3 feet, 36 inches, 0.9144 meters) in length. + /// + /// https://en.wikipedia.org/wiki/Cubic_yard CubicYard = 15, Decaliter = 16, DecausGallon = 17, @@ -48,6 +83,11 @@ public enum VolumeUnit HectocubicMeter = 21, Hectoliter = 22, HectousGallon = 23, + + /// + /// Fluid barrels vary depending on what is being measured and where. In the UK a beer barrel is 36 imperial gallons (43 US gal; ~164 L). + /// + /// https://en.wikipedia.org/wiki/Barrel_(unit)#Fluid_barrel_in_the_US_and_UK ImperialBeerBarrel = 24, /// @@ -55,8 +95,23 @@ public enum VolumeUnit /// /// https://en.wikipedia.org/wiki/Gallon#Imperial_gallon ImperialGallon = 25, + + /// + /// An imperial fluid ounce is 1⁄20 of an imperial pint, 1⁄160 of an imperial gallon or exactly 28.4130625 mL. + /// + /// https://en.wikipedia.org/wiki/Fluid_ounce ImperialOunce = 26, + + /// + /// The pint is a unit of volume or capacity in both the imperial and United States customary measurement systems. In both of those systems it is traditionally one eighth of a gallon. The British imperial pint is about 20% larger than the American pint because the two systems are defined differently. + /// + /// https://en.wikipedia.org/wiki/Pint#Imperial_pint ImperialPint = 27, + + /// + /// The imperial quart, which is used for both liquid and dry capacity, is equal to one quarter of an imperial gallon, or exactly 1.1365225 liters. + /// + /// https://en.wikipedia.org/wiki/Quart#Imperial_quart ImperialQuart = 57, KilocubicFoot = 28, KilocubicMeter = 29, @@ -68,14 +123,44 @@ public enum VolumeUnit MegaimperialGallon = 35, Megaliter = 36, MegausGallon = 37, + + /// + /// Australia, Canada, New Zealand, and some other members of the Commonwealth of Nations, being former British colonies that have since metricated, employ a metric cup of 250 millilitres. Although derived from the metric system, it is not an SI unit. + /// + /// https://en.wikipedia.org/wiki/Cup_(unit)#Metric_cup MetricCup = 38, + + /// + /// The metric teaspoon as a unit of culinary measure is 5 ml (0.18 imp fl oz; 0.17 US fl oz),[17] equal to 5 cm3, 1⁄3 UK/Canadian metric tablespoon, or 1⁄4 Australian metric tablespoon. + /// + /// https://en.wikipedia.org/wiki/Teaspoon#Metric_teaspoon MetricTeaspoon = 39, Microliter = 40, Milliliter = 41, Nanoliter = 53, + + /// + /// In the oil industry, one barrel (unit symbol bbl) is a unit of volume used for measuring oil defined as exactly 42 US gallons, approximately 159 liters, or 35 imperial gallons. + /// + /// https://en.wikipedia.org/wiki/Barrel_(unit)#Oil_barrel OilBarrel = 42, + + /// + /// In nutrition labeling in the U.S. and the U.K., a tablespoon is defined as 15 ml (0.51 US fl oz). In Australia, the definition of the tablespoon is 20 ml (0.70 imp fl oz). + /// + /// https://en.wikipedia.org/wiki/Tablespoon#International UkTablespoon = 43, + + /// + /// Fluid barrels vary depending on what is being measured and where. In the US most fluid barrels (apart from oil) are 31.5 US gallons (26 imp gal; 119 L) (half a hogshead), but a beer barrel is 31 US gallons (26 imp gal; 117 L). + /// + /// https://en.wikipedia.org/wiki/Barrel_(unit)#Fluid_barrel_in_the_US_and_UK UsBeerBarrel = 44, + + /// + /// In the United States, the customary cup is half of a liquid pint or 1⁄16 US customary gallon which is 236.5882365 milliliters exactly. + /// + /// https://en.wikipedia.org/wiki/Cup_(unit)#Customary_cup UsCustomaryCup = 45, /// @@ -83,11 +168,41 @@ public enum VolumeUnit /// /// https://en.wikipedia.org/wiki/Gallon#US_liquid_gallon UsGallon = 46, + + /// + /// The cup currently used in the United States for nutrition labelling is defined in United States law as 240 ml. + /// + /// https://en.wikipedia.org/wiki/Cup_(unit)#Legal_cup UsLegalCup = 47, + + /// + /// A US customary fluid ounce is 1⁄16 of a US liquid pint and 1⁄128 of a US liquid gallon or exactly 29.5735295625 mL, making it about 4.08% larger than the imperial fluid ounce. + /// + /// https://en.wikipedia.org/wiki/Fluid_ounce UsOunce = 48, + + /// + /// The pint is a unit of volume or capacity in both the imperial and United States customary measurement systems. In both of those systems it is traditionally one eighth of a gallon. The British imperial pint is about 20% larger than the American pint because the two systems are defined differently. + /// + /// https://en.wikipedia.org/wiki/Pint#US_liquid_pint UsPint = 49, + + /// + /// The US liquid quart equals 57.75 cubic inches, which is exactly equal to 0.946352946 L. + /// + /// https://en.wikipedia.org/wiki/Quart#US_liquid_quart UsQuart = 50, + + /// + /// The traditional U.S. interpretation of the tablespoon as a unit of volume is: 1 US tablespoon = 4 fluid drams, or 3 teaspoons or 1/2 US fluid ounce (≈ 14.8 ml) + /// + /// https://en.wikipedia.org/wiki/Tablespoon#United_States UsTablespoon = 51, + + /// + /// As a unit of culinary measure, one teaspoon in the United States is 1⁄3 tablespoon, exactly 4.92892159375 ml, 1 1⁄3 US fluid drams, 1⁄6 US fl oz, 1⁄48 US cup, 1⁄768 US liquid gallon, or 77⁄256 (0.30078125) cubic inches. + /// + /// https://en.wikipedia.org/wiki/Teaspoon#United_States_customary_unit UsTeaspoon = 52, }