{
  "x402Version": 2,
  "id": 33854,
  "slug": "33854",
  "resource": "https://x402.agentindex.world/fraction/simplify",
  "description": "Simplify a fraction to lowest terms and return its decimal value.",
  "type": "http",
  "serviceName": "fraction-simplify",
  "resourceType": "Developer Tool",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xb3F32bdfe8D07825BC0D7387295aB1D7559BA69d",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000",
      "amountUsd": 0.001,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "decimal": {
            "title": "Decimal",
            "type": "number"
          },
          "denominator": {
            "title": "Denominator",
            "type": "integer"
          },
          "numerator": {
            "title": "Numerator",
            "type": "integer"
          }
        },
        "required": [
          "numerator",
          "denominator",
          "decimal"
        ],
        "title": "FractionOutput",
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "denominator": 8,
            "numerator": 4
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "decimal": 0.5,
            "denominator": 2,
            "numerator": 1
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "denominator": {
                    "title": "Denominator",
                    "type": "integer"
                  },
                  "numerator": {
                    "title": "Numerator",
                    "type": "integer"
                  }
                },
                "required": [
                  "numerator",
                  "denominator"
                ],
                "title": "FractionInput",
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "decimal": {
                    "title": "Decimal",
                    "type": "number"
                  },
                  "denominator": {
                    "title": "Denominator",
                    "type": "integer"
                  },
                  "numerator": {
                    "title": "Numerator",
                    "type": "integer"
                  }
                },
                "required": [
                  "numerator",
                  "denominator",
                  "decimal"
                ],
                "title": "FractionOutput",
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "fraction",
    "simplify",
    "lowest terms",
    "gcd",
    "math",
    "bazaar"
  ],
  "sourceHost": "x402.agentindex.world",
  "lastUpdated": "2026-10-08T06:08:32.857Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-08T06:08:32.605Z"
  },
  "metadata": {
    "serviceName": "fraction-simplify",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "denominator": 8,
              "numerator": 4
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "decimal": 0.5,
              "denominator": 2,
              "numerator": 1
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "denominator": {
                      "title": "Denominator",
                      "type": "integer"
                    },
                    "numerator": {
                      "title": "Numerator",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "numerator",
                    "denominator"
                  ],
                  "title": "FractionInput",
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST",
                    "PUT",
                    "PATCH"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "decimal": {
                      "title": "Decimal",
                      "type": "number"
                    },
                    "denominator": {
                      "title": "Denominator",
                      "type": "integer"
                    },
                    "numerator": {
                      "title": "Numerator",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "numerator",
                    "denominator",
                    "decimal"
                  ],
                  "title": "FractionOutput",
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "x402.agentindex.world",
    "manifest_name": "x402.agentindex.world",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "decimal": 0,
      "denominator": 0,
      "numerator": 0
    },
    "type": "string"
  }
}