Convert numbers into 10-point buckets.

Section: Numbers and Math

Bucket numbers

bash
bash
echo '[3,14,27,39]' | jq 'map((./10 | floor) * 10)'
Explanation

Common analytics-style transformation.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Numbers and Math
Floor number
Round down to nearest integer.
OpenIn sheetbashsame section
Ceiling number
Round up to nearest integer.
OpenIn sheetbashsame section
Round number
Round to the nearest integer.
OpenIn sheetbashsame section
Absolute value
Return the absolute value of a number.
OpenIn sheetbashsame section
Generate numeric range
Create a sequence of integers.
OpenIn sheetbashsame section
Logical AND
Filter items that satisfy two conditions.
OpenIn sheetbash1 tag match