Post Reply 
newRPL - build 1255 released! [updated to 1299]
06-11-2019, 11:00 PM (This post was last modified: 06-11-2019 11:23 PM by wyatt8740.)
Post: #501
RE: newRPL - build 1255 released! [official and unofficial]
Is there some way I could use newRPL as a sort-of-replacement for 'dc' as a text-based calculator in a terminal?

i.e., a way that I can pipe RPL as text to standard input, and have the software print the results?

example of my current usage of dc on my freeBSD and Debian Linux systems, but using the (non-standard!) ';' character as a 'comment marker' for explanation:
Code:
$ dc
10 k            ; Pop 10 off the stack and set uses it to set the number of digits of fraction precision to 10 (dc defaults to integer math only)
1600 1200 /      ; divide 1600 by 1200
p               ; print the number on top of the stack
1.3333333333
q               ; quit (only necessary when not in a pipe; quits automatically on EOF or EOT [^D])
$
or, in a pipe:
Code:
$ echo '10 k 1600 1200 / p' | dc
1.3333333333
$

I'd love to have software with more features, such as modulus, functions, etc. - even a limited form without true programmability would be a welcome improvement for my shell scripts.

Additionally, I'd also like a way to use the simulator without showing the on-screen keyboard, which takes up a ton of screen space and isn't always necessary for simple tasks.

Wyatt Ward
Computer history enthusiast
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: newRPL - build 1001 released! - pier4r - 12-16-2017, 08:03 AM
newRPL - on Hp 39gs - Martin Hepperle - 06-05-2019, 06:51 AM
RE: newRPL - build 1001 released! - pier4r - 12-23-2017, 10:16 AM
RE: newRPL - build 1001 released! - pier4r - 01-01-2018, 09:42 AM
t - Claudio L. - 01-01-2018, 03:06 PM
RE: newRPL - build 1001 released! - pier4r - 01-01-2018, 03:41 PM
RE: newRPL - build 1001 released! - pier4r - 01-02-2018, 04:54 PM
RE: newRPL - build 1001 released! - pier4r - 01-02-2018, 06:58 PM
newRPL - brickviking - 10-05-2018, 06:01 AM
RE: newRPL - build 1255 released! [official and unofficial] - wyatt8740 - 06-11-2019 11:00 PM
How to participate? - erazor - 12-13-2019, 07:12 AM



User(s) browsing this thread: 2 Guest(s)