{"id":14,"date":"2015-11-09T14:53:59","date_gmt":"2015-11-09T14:53:59","guid":{"rendered":"http:\/\/o-calcpro.com\/wiki\/?p=14"},"modified":"2015-11-18T16:35:56","modified_gmt":"2015-11-18T16:35:56","slug":"units-conversion","status":"publish","type":"post","link":"http:\/\/o-calcpro.com\/wiki\/2015\/11\/09\/units-conversion\/","title":{"rendered":"Units Conversion"},"content":{"rendered":"<p>O-Calc Pro provides a complete set of routines for performing all of the units conversion that might be required by O-Calc developers.<\/p>\n<p>It is important to understand that the stored units and the displayed units in O-Calc Pro are not always the same. The integrated Schema Explorer tool allows you to find the name and stored units of any attribute in the O-Calc data model.<\/p>\n<p>Access to the units conversion routines are via the PPL_Lib.PPLGridModel.Attribute namespace and the methods provided are as follows.<\/p>\n<div id=\"ig-sh-1\" class=\"syntax_hilite\">\n\n\t\t<div class=\"toolbar\">\n\n\t\t<div class=\"view-different-container\">\n\t\t\t\t\t\t<a href=\"#\" class=\"view-different\">&lt; View <span>plain text<\/span> &gt;<\/a>\n\t\t\t\t\t<\/div>\n\n\t\t<div class=\"language-name\">C#<\/div>\n\n\t\t\n\t\t<br clear=\"both\">\n\n\t<\/div>\n\t\n\t<div class=\"code\">\n\t\t<ol class=\"csharp\" style=\"font-family:monospace\"><li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/Inches to ...<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> InchesToFeet<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pInches<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> InchesToMillimeters<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pInches<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> InchesToCentimeters<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pInches<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> InchesToMeters<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pInches<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> CentimetersToInches<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pCentimeters<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> MillimetersToInches<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pMillimeters<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> MetersToInches<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pMeters<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp;<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/Feet to ...<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> FeetToInches<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pFeet<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> FeetToMeters<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pFeet<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> MetersToFeet<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pMeters<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp;<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/Pounds to ...<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> PoundsToNewtons<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pLbs<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> NewtonsToPounds<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pNewtons<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> PoundsToKilograms<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pLbs<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> KilogramsToPounds<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pKilograms<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp;<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/weight vs length...<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> PoundsPerInchToPoundsPerFoot<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pLbsPerIn<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> PoundsPerInchToKilogramsPerCentimeter<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pLbsPerIn<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> PoundsPerFootToPoundsPerInch<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pLbsPerFt<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> PoundsPerInchToKilogramsPerMeter<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pLbsPerIn<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> KilogramsPerMeterToPoundsPerInch<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pKgPerMtr<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp;<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/Pressure ...<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> PoundsPerSquareFootToPascal<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pPSF<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> PascalToPoundsPerSquareFoot<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pPa<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> KilopascalToPSI<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pKpa<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> PSItoKilopascal<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pPSI<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp;<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/Density<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> PoundsPerCubicFootToKgM3<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pLbsFt3<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> KgM3toPoundsPerCubicFoot<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pLbsFt3<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp;<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/Angle<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> RadiansToDegrees<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pRadians<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> DegreesToRadians<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pDegrees<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp;<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/Pressure<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> PoundsPerCubicFootToPoundsPerCubicInch<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pPoundsPerCubicFoot<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> PoundsPerCubicInchToPoundsPerCubicFoot<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pPoundsPerCubicInch<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp;<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/Torque ...<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> FootPoundsToNewtonMeters<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pFtLbs<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> NewtonMetersToFootPounds<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pNtnMtr<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp;<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/Temperature<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> CelsiusToFahrenheit<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pCelsius<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> FahrenheitToCelsius<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pFahrenheit<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp;<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/velocity<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> MilesPerHourToKilometersPerHour<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pMph<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> KilometersPerHourMilesPerHour<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pKph<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp;<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/second moment of inertia<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> IN4toCM4<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pIN4<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> CM4toIN4<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pCM4<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp;<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/area<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> IN2toCM2<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pIN2<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #0600FF;font-weight: bold\">static<\/span> <span style=\"color: #6666cc;font-weight: bold\">double<\/span> CM2toIN2<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">double<\/span> pCM2<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<\/ol>\t<\/div>\n\n<\/div>\n\n<a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-facebook nolightbox\" data-provider=\"facebook\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Facebook\" href=\"https:\/\/www.facebook.com\/sharer.php?u=http%3A%2F%2Fo-calcpro.com%2Fwiki%2Fwp-json%2Fwp%2Fv2%2Fposts%2F14&#038;t=Units%20Conversion&#038;s=100&#038;p&#091;url&#093;=http%3A%2F%2Fo-calcpro.com%2Fwiki%2Fwp-json%2Fwp%2Fv2%2Fposts%2F14&#038;p&#091;images&#093;&#091;0&#093;=&#038;p&#091;title&#093;=Units%20Conversion\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px\"><img decoding=\"async\" alt=\"Facebook\" title=\"Share on Facebook\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"http:\/\/o-calcpro.com\/wiki\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/facebook.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-twitter nolightbox\" data-provider=\"twitter\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Twitter\" href=\"https:\/\/twitter.com\/intent\/tweet?url=http%3A%2F%2Fo-calcpro.com%2Fwiki%2Fwp-json%2Fwp%2Fv2%2Fposts%2F14&#038;text=O-Calc%20Pro%20Information\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px\"><img decoding=\"async\" alt=\"twitter\" title=\"Share on Twitter\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"http:\/\/o-calcpro.com\/wiki\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/twitter.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-linkedin nolightbox\" data-provider=\"linkedin\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Linkedin\" href=\"https:\/\/www.linkedin.com\/shareArticle?mini=true&#038;url=http%3A%2F%2Fo-calcpro.com%2Fwiki%2Fwp-json%2Fwp%2Fv2%2Fposts%2F14&#038;title=Units%20Conversion\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px\"><img decoding=\"async\" alt=\"linkedin\" title=\"Share on Linkedin\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"http:\/\/o-calcpro.com\/wiki\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/linkedin.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-mail nolightbox\" data-provider=\"mail\" rel=\"nofollow\" title=\"Share by email\" href=\"mailto:?subject=Units%20Conversion&#038;body=O-Calc%20Pro%20Information:%20http%3A%2F%2Fo-calcpro.com%2Fwiki%2Fwp-json%2Fwp%2Fv2%2Fposts%2F14\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px\"><img decoding=\"async\" alt=\"mail\" title=\"Share by email\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"http:\/\/o-calcpro.com\/wiki\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/mail.png\" \/><\/a>","protected":false},"excerpt":{"rendered":"<p>O-Calc Pro provides a complete set of routines for performing all of the units conversion that might be required by O-Calc developers. It is important to understand that the stored units and the displayed units in O-Calc Pro are not always the same. The integrated Schema Explorer tool allows you to find the name and ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"http:\/\/o-calcpro.com\/wiki\/2015\/11\/09\/units-conversion\/\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,3],"tags":[],"class_list":["post-14","post","type-post","status-publish","format-standard","hentry","category-plugin-development","category-scripting"],"_links":{"self":[{"href":"http:\/\/o-calcpro.com\/wiki\/wp-json\/wp\/v2\/posts\/14","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/o-calcpro.com\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/o-calcpro.com\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/o-calcpro.com\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/o-calcpro.com\/wiki\/wp-json\/wp\/v2\/comments?post=14"}],"version-history":[{"count":5,"href":"http:\/\/o-calcpro.com\/wiki\/wp-json\/wp\/v2\/posts\/14\/revisions"}],"predecessor-version":[{"id":16,"href":"http:\/\/o-calcpro.com\/wiki\/wp-json\/wp\/v2\/posts\/14\/revisions\/16"}],"wp:attachment":[{"href":"http:\/\/o-calcpro.com\/wiki\/wp-json\/wp\/v2\/media?parent=14"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/o-calcpro.com\/wiki\/wp-json\/wp\/v2\/categories?post=14"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/o-calcpro.com\/wiki\/wp-json\/wp\/v2\/tags?post=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}