Git Product home page Git Product logo

ccalc's Introduction

ccalc

Command line math expression evaluator - from the original by Steve Hanov: http://stevehanov.ca/blog/?id=26
The source code that I started with was available on 20 June 2019 at: http://stevehanov.ca/blog/calc.c
This is a simple command line calculator to save you the clicks or keystrokes required by many common options. I think it is the best for simple, rough calculations and it works well for my day-to-day workflow in a Windows environment.

For example;

C:\>ccalc 100/(412117/78221)  
18.980290  
  
C:\>ccalc 0x961
2401.000000
  
C:\>ccalc (3500000 * .03)  
105000.00  
  

In a Linux environment, bc is already available for analygous command line math:

user@host:~$ bc -l <<< "scale=2 ; 100/(412117/78221)"
19.01

(Note the rounding difference. If you are looking for precise results, use tooling purpose built for your needs.)

ccalc's People

Contributors

mccright avatar mend-bolt-for-github[bot] avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.