ROUND(1)

πŸ“¦
version 0.5 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

✨ ROUND(1) ✨

okay bestie, this is numround β€” the little Perl script from the num-utils squad that's about to round every number it bumps into. no cap, that's literally the whole job. πŸ’…


πŸ’– NAME πŸ’–

numround β€” a program that rounds off numbers it encounters. that's it. that's the girl. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

numround [-cdfhV] <FILE>

| numround [-cdfhV]   (Input on STDIN from pipeline.)

numround [-cdfhV]     (Input on STDIN.  Use Ctrl-D to stop.)

so you can hand it a file, you can pipe stuff into it, or you can just type numbers at it and hit Ctrl-D when you're done. three moods, same icon behavior. ✨


🌸 DESCRIPTION 🌸

numround will simply round decimal numbers to the nearest integer, or β€” if you're feeling fancy β€” to a factor of any number, using the -n option. it can also be forced to round up (ceiling) or down (floor) with the -c and -f options. lowkey a whole rounding machine. 🫢


πŸ‘‘ OPTIONS πŸ‘‘

  • -c β€” force the number to be rounded up. ceiling energy. ⬆️
  • -f β€” force the number to be rounded down. floor energy. ⬇️
  • -n <n> β€” round numbers to the nearest factor of <n>.
  • -h β€” print out some helpful information about numround. she explains herself. πŸ’–
  • -V β€” increase verbosity. this will print out numbers as it finds them. she's yapping (affectionate).
  • -d β€” debug mode. for developers only. 🚧

πŸ’€ BUGS πŸ’€

numround currently only rounds the first number on each line. eventually this will be changed as all the numeric utilities are developed. (yes, bestie, she's a work in progress. we're being patient.) 😭
numround will drop off the decimal places in decimal numbers. this may cause some calculations to be in error, depending on how you are using the data. ⚠️ not a vibe for precision math, fr fr.

🧚 SEE ALSO 🧚

numaverage(1), numbound(1), numinterval(1), numnormalize(1), numgrep(1), numprocess(1), numsum(1), numrandom(1), numrange(1) β€” the whole friend group. go say hi. 🌈


numround is part of the num-utils package, which is copyrighted by Suso Banderas and released under the GPL license. please read the COPYING and LICENSE files that came with the num-utils package. πŸ“œ

developers can read the GOALS file and contact me about providing submitions or help for the project. 🫑


⭐ MORE INFO ⭐

more info on numround can be found at:

http://suso.suso.org/xulu/Num-utils

and that's the page, bestie!! this one's perl v5.30.3, dated 2020-06-09, and it's ROUND(1) from the User Contributed Perl Documentation set β€” tysm for reading, mwah, go round some numbers πŸ’œβœ¨πŸŽ€

πŸ“¦ where this page comes from