Run artifact

workspace/targets/jq/blueprint/FEATURE-Numeric.md

FEATURE: Numeric Builtins

FieldValue
Version20261028 V1
DescriptionImplement jq math functions and non-decnum numeric behavior.
Depends OnFEATURE-Formats.md
Providesjq numeric builtins
Consumesjq format filters

Purpose

Provide the math functions and numeric edge cases exercised by the jq 1.8.2 corpus, following the manual's non-decnum behavior.

Behavior

Programmatic Acceptance

=== AC numeric-corpus ===
Intent: Numeric functions and the selected non-decnum cases execute with the corpus-defined results.
Suite: scoped
Requires: executable=python3; scope=test
Probe: --list
Probe Count: summary

import json import os import subprocess import sys

SELECT = r"have_decnum|isnan|infinite|pow\(|\bfabs\b|\bsqrt\b|\bfloor\b" result = subprocess.run( [sys.executable, "sources/run_conformance.py", "--select", SELECT, "--json"], capture_output=True, text=True, env={**os.environ, "JQ": os.path.abspath("jq")}, ) print(result.stdout) print(result.stderr, file=sys.stderr) report = json.loads(result.stdout) tally = report["summary"] assert sum(tally.values()) > 0, f"selector matched no case: {SELECT}" assert tally["fail"] == 0 and tally["error"] == 0, tally assert result.returncode == 0, result.returncode === END AC numeric-corpus ===

User Acceptance

Guardrails