Giter Club home page Giter Club logo

cmp-rpncalc's People

Contributors

philrunninger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cmp-rpncalc's Issues

Support binary, octal, and hexadecimal

  1. Allow input of numbers in binary, octal, and hexadecimal. (Does lua natively understand 0b10101, 0o147, and 0x17AF or something similar? That would be nice.
  2. Control how the result of the expression is returned with new operators: bin, oct, and hex. These shouldn't change the stack, but just format the returned string a specific way.

Examples:

  • 0x1E bin returns 11110. Since the operator only changes they way results are reported, bin could appear anywhere in the expression. bin 0x1E returns the same result.
  • Mixed bases should be processed seamlessly. 0x1E 0o55 + returns 75 (in decimal by default.)

Add memory and stack manipulation operators

  • xm - store X in memory
  • rm - recall memory to the stack
  • m+ - add X to memory
  • m- - subtract X from memory
  • xy - swap X and Y
  • lastx, or maybe just x - put last value of X (from before the last operation) on the stack again

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.