{
  "schemaVersion": 1,
  "slug": "force-calculator",
  "category": "conversion",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "00d7d3fce2bc4daa489fdb640f560cc4e11676787668ef2477b4766af2c949b7",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/force-calculator.json",
    "src/engine.js"
  ],
  "runtimeSource": "/sources/engine.txt",
  "runtimeHash": "5c888d8898afbdee36267bb9977829e1e2ac568f6677c8ee87469c139864645c",
  "scope": "The compute function records implemented equations, constants, lookup tables and custom rules. Inputs record defaults and allowed values; outputs record precision and units. Defaults are examples, not recommendations. General background references are not evidence for this specific algorithm.",
  "publishedFormula": {
    "formula": "F = x × kf ÷ kt",
    "vars": [
      [
        "x",
        "entered force value"
      ],
      [
        "kf",
        "source factor to newtons"
      ],
      [
        "kt",
        "target factor to newtons"
      ],
      [
        "F",
        "converted force"
      ]
    ],
    "note": "Factors to newtons: n 1, kn 1000, kgf 9.80665, lbf 4.4482216, dyn 10⁻⁵, ozf 0.2780139."
  },
  "externalEvidence": {
    "reviewedAt": "2026-10-04",
    "sources": [
      {
        "name": "NIST SP 811 — Conversion factors by quantity",
        "url": "https://www.nist.gov/pml/special-publication-811/nist-guide-si-appendix-b-conversion-factors/nist-guide-si-appendix-b9"
      }
    ],
    "basis": "Convert force via newtons using the selected unit factor.",
    "limitations": "Only the displayed unit definitions are converted; rounding and measurement uncertainty are separate.",
    "implementationHash": "00d7d3fce2bc4daa489fdb640f560cc4e11676787668ef2477b4766af2c949b7",
    "domain": "conversion"
  },
  "contract": {
    "compute": "const units={\"n\":\"N\",\"kn\":\"kN\",\"kgf\":\"kgf\",\"lbf\":\"lbf\",\"dyn\":\"dyn\",\"ozf\":\"ozf\"}, factors={\"n\":1,\"kn\":1000,\"kgf\":9.80665,\"lbf\":4.4482216152605,\"dyn\":0.00001,\"ozf\":0.278013850953781}; if(!Number.isFinite(value)||value<-1000000000000||value>1000000000000||!Object.prototype.hasOwnProperty.call(units,from)||!Object.prototype.hasOwnProperty.call(units,to))return {\"result\":null,\"newtons\":null,\"kgf\":null,\"lbf\":null,\"__error\":\"inputError\"}; const out=(function(){const F={n:1,kn:1000,kgf:9.80665,lbf:4.4482216152605,dyn:1e-5,ozf:0.278013850953781}; const n=value*F[from]; return { result: n/F[to], newtons: n, kgf: n/9.80665, lbf: n/4.4482216152605 };})(); if(out.__error)return {...{\"result\":null,\"newtons\":null,\"kgf\":null,\"lbf\":null},...out}; out.__resultUnit=units[to]; out.__unitRatio=factors[to]/factors[from]; return out;",
    "inputs": [
      {
        "name": "value",
        "type": "number",
        "default": 1,
        "min": -1000000000000,
        "max": 1000000000000,
        "step": 0.0001,
        "requiredValue": true,
        "strictRange": true
      },
      {
        "name": "from",
        "type": "select",
        "default": "kgf",
        "options": [
          {
            "value": "kgf"
          },
          {
            "value": "n"
          },
          {
            "value": "kn"
          },
          {
            "value": "lbf"
          },
          {
            "value": "dyn"
          },
          {
            "value": "ozf"
          }
        ]
      },
      {
        "name": "to",
        "type": "select",
        "default": "lbf",
        "options": [
          {
            "value": "lbf"
          },
          {
            "value": "n"
          },
          {
            "value": "kn"
          },
          {
            "value": "kgf"
          },
          {
            "value": "dyn"
          },
          {
            "value": "ozf"
          }
        ]
      },
      {
        "name": "precision",
        "type": "select",
        "default": 4,
        "options": [
          {
            "value": 0
          },
          {
            "value": 2
          },
          {
            "value": 4
          },
          {
            "value": 6
          }
        ]
      }
    ],
    "outputs": [
      {
        "name": "result",
        "precision": 4,
        "unit": "",
        "precisionField": "precision",
        "unitField": "__resultUnit",
        "trimTrailingZeros": true,
        "notation": "auto"
      },
      {
        "name": "newtons",
        "precision": 4,
        "unit": "N",
        "showWhen": {
          "to": [
            "kn",
            "kgf",
            "lbf",
            "dyn",
            "ozf"
          ]
        },
        "notation": "auto"
      },
      {
        "name": "kgf",
        "precision": 4,
        "unit": "kgf",
        "showWhen": {
          "to": [
            "n",
            "kn",
            "lbf",
            "dyn",
            "ozf"
          ]
        },
        "notation": "auto"
      },
      {
        "name": "lbf",
        "precision": 4,
        "unit": "lbf",
        "showWhen": {
          "to": [
            "n",
            "kn",
            "kgf",
            "dyn",
            "ozf"
          ]
        },
        "notation": "auto"
      }
    ],
    "interpret": null
  }
}
