{
  "slug": "sqlite3-cli-mode-integer-and-floating-point-format-options-c9819278b69a",
  "title": "sqlite3 CLI `.mode` integer and floating-point format options",
  "tools": [
    "sqlite3"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-10-09T00:00:00.000Z",
  "announced_at": "2026-10-09T00:00:00.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When inspecting query output, set `.mode`’s `--ifmt` and/or `--fpfmt` options to control integer and floating-point rendering.",
    "examples": [
      ".mode qbox --ifmt \",d\" --fpfmt \"%.2f\"\nSELECT * FROM <table>;",
      ".mode qbox --ifmt %x --fpfmt %.8e\nSELECT * FROM <table>;"
    ],
    "gotchas": [
      "Version: 3.54.0",
      "--ifmt STRING: printf-style format for integer values. If set, STRING begins with `%` and ends in `d`, `x`, `X`, or `o`; optional width and precision are each at most 3 digits, precision is ignored, and accepted flags are `+`, `-`, `#`, `0`, and `,`. `auto` uses default integer conversion.",
      "--fpfmt STRING: printf-style format for floating-point values. If set, STRING begins with `%` and ends in `f`, `e`, `E`, `g`, or `G`; optional width and precision are each at most 3 digits, and accepted flags are `+`, `-`, `#`, and `,`. `auto` uses default floating-point conversion.",
      "Prerequisite: Use SQLite CLI version 3.54.0 or later for the card’s stated version; the documentation examples identify the CLI as SQLite 3.54."
    ]
  },
  "why_it_matters": "Control how integer and floating-point values render when inspecting query output.",
  "sources": [
    "https://sqlite.org/changes.html#version_3_54_0",
    "https://sqlite.org/climode.html",
    "https://sqlite.org/climode.html#opt-ifmt",
    "https://sqlite.org/climode.html#opt-fpfmt"
  ],
  "rank": 0.95021,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2b-20261017",
    "verdict_id": "wave2b-20261017:wave2b-20261017-aa6aa8a7b4aa7d39-2:gate",
    "evidence_hash": "1fb71d915964f35cc634b16363eed077d8e1b30e6badf26cf9b3e5eb52e979c1"
  },
  "review": {
    "draft_hash": "df13c59ab290c5a5df88029755f0627474746caf11b68b22776b5ff2c7bae955",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-09T00:00:00.000Z",
    "decision": "wave2b-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.95 >= 0.9; 2 needed) and Jev gave 0.69 (>= 0.6 needed)."
  }
}
