Skip to content
/ rpn Public

Reverse Polish Notation calculator for Urbit

Notifications You must be signed in to change notification settings

sigilante/rpn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

%rpn

Status: Demo app, complete.

Reverse Polish Notation calculator for Urbit. An App Workshop tutorial.

Supports numbers (as @rs single-precision floating-point values) and basic arithmetic operators +, -, *, /. . to display top of stack.

> 50
~ →
~[.50]

> 25
~[.50] →
~[.50 .25]

> -
~[.50 .25] →
~[.-25]

> 5
~[.-25] →
~[.-25 .5]

> /
~[.-25 .5] →
~[.-0.19999999]

> 5
~[.-0.19999999] →
~[.-0.19999999 .5]

> *
~[.-0.19999999 .5] →
~[.-0.99999994]

> 1
~[.-0.99999994] →
~[.-0.99999994 .1]

> /
~[.-0.99999994 .1] →
~[.-1]

About

Reverse Polish Notation calculator for Urbit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages