nowfound

Life & fun · February 24, 2021

Shellmath: Floating-point arithmetic directly in bash

Yes, Virginia, you can do floating-point arithmetic in Bash! - clarity20/shellmath

Shellmath: Floating-point arithmetic directly in bash launched on February 24, 2021 with 30 votes, #1,115 of 3,133 launches that month and more than 75% of that year's launches. The site was still online in September 2026, 5 years on.

In plain words

Shellmath is a bash tool that enables floating-point arithmetic calculations directly within shell scripts. It allows developers and system administrators who work with bash to perform decimal math operations that the shell normally doesn't support natively. The tool addresses a common limitation in bash scripting where only integer arithmetic is available by default, making it useful for scripts requiring precise calculations.

written from the facts on this page · September 2026

Does a similar job

all alternatives →
  • Sensible Bash: An attempt at saner Bash defaults2016 · github.com · ▲173

    An attempt at saner Bash defaults. Contribute to mrzool/bash-sensible development by creating an account on GitHub.

  • Sol – A de-minifier for shell programs2024 · github.com · ▲147

    I've built a tool called sol (like "soul") that helps you inspect and format complex shell one-liners. Features: - Choose which transformations you want (break on pipe, args, redirect, whatever) - "Peeks" into stringified commands (think xargs, parallel) and formats those, too - Auto-breaks at a given width (e.g., 80 characters) - Shows you non-standard aliases, functions, files, etc. that you might not have in your shell environment - Breaks up long jq lines with jqfmt because—let's be honest—they're getting out of hand As a security researcher and tool developer, I often encounter (or…

  • BashBuddy2025 · bashbuddy.run · ▲159

    Write bash commands with natural language, fully local.

  • I made an interactive hex calculator in ncurses2019 · github.com · ▲113

    Terminal based bit manipulator in ncurses. Contribute to mellowcandle/bitwise development by creating an account on GitHub.

  • libRmath.js – A port of R's Nmath numeric library to JavaScript2018 · github.com · ▲80

    This R statistical nmath module re-created in typescript/javascript and handwritten webassembly. - R-js/libRmath.js

  • Calc – A fast and intuitive command-line calculator written in Go2015 · github.com · ▲94

    A simple command-line calculator written in Go. Contribute to alfredxing/calc development by creating an account on GitHub.

More life & fun this month

the category →

Source: Show HN post ↗

Launched alongside, February 2021

the whole month →