dc -e '3 k 57 47 / p'
Or what have you.
It's pretty useful. I recommend spending an hour or two with it. You'll use it.
One of the nice things about rpn is if you forget something or want to modify things, you'll quickly find out that it's more convenient.
A little syntax weirdness apparently goes a long way in making things ridiculously easier to manipulate.
You can write programs with it btw. Hobby away: https://rosettacode.org/wiki/Category:Dc
Things get delightfully cryptic: https://rosettacode.org/wiki/Generate_lower_case_ASCII_alpha...
Go through a Forth tutorial to get the hang of RPN style programming if that's truly gibberish to you. It won't make it easy, but it will make it readable
dc -e '3 k 57 47 / p'
Or what have you.
It's pretty useful. I recommend spending an hour or two with it. You'll use it.
One of the nice things about rpn is if you forget something or want to modify things, you'll quickly find out that it's more convenient.
A little syntax weirdness apparently goes a long way in making things ridiculously easier to manipulate.
You can write programs with it btw. Hobby away: https://rosettacode.org/wiki/Category:Dc
Things get delightfully cryptic: https://rosettacode.org/wiki/Generate_lower_case_ASCII_alpha...
Go through a Forth tutorial to get the hang of RPN style programming if that's truly gibberish to you. It won't make it easy, but it will make it readable