numdiff
« Back to VersTracker
Description:
Putative files comparison tool
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: cli comparison scientific text-processing
Install: brew install numdiff
About:
Numdiff is a command-line utility that compares two files containing floating-point numbers, ignoring formatting and whitespace differences. It allows users to specify an absolute or relative tolerance for comparisons, making it ideal for verifying numerical data output from scientific simulations or calculations.
Key Features:
  • Tolerance-based comparison for floating-point numbers
  • Supports both absolute (-a) and relative (-r) tolerance flags
  • Ignores whitespace and formatting differences
  • Command-line interface for scripting and automation
Use Cases:
  • Verifying the correctness of scientific simulation outputs
  • Comparing numerical data files generated on different architectures
  • Validating regression tests for numerical algorithms
Alternatives:
  • diff – Standard diff is strict about whitespace and formatting, and cannot handle floating-point tolerances.
  • cmp – cmp compares files byte-by-byte and is unsuitable for text-based numerical data.
Version History
Detected Version Rev Change Commit
Sep 16, 2025 3:57pm 0 VERSION_BUMP b3df7fe1
Sep 12, 2024 11:47am 0 VERSION_BUMP 15a65539