Calculate an expression with the specified scale

dc

  • An arbitrary precision calculator. Uses reverse polish notation (RPN).
    See also: `bc`.
    More information: <https://www.gnu.org/software/bc/manual/dc-1.05/html_mono/dc.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

dc --expression='{{10}} k {{5 3 /}} p'

click the source code to copy install dc on any operating system with command-not-found.com