GithubHelp home page GithubHelp logo

mathevaluator's People

Contributors

lengstrom avatar meadowstream avatar

Stargazers

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

Watchers

 avatar  avatar

mathevaluator's Issues

Numbers don't add up to 0

Try this: -5.2325873374938965+5.23258733749390
Result is: 3.5527, obviously it should be 0

Python returns:

-5.2325873374938965+5.23258733749390
3.552713678800501e-15

Line 131 in mathevaluator.py is flawed, it just truncates which is a bad idea. It should rather leave it alone or format the number using "%.4f" % float(evaluated).

Support Python 3.3 & ST3

Currently it throws errors, two are prints without parentheses that I managed to fix, but it's still missing the pyparsing module

Doesn't seem to work with SublimeText3

Installed using Package Control with SublimeText 3, Stable Channel 3083 (on Windows 8.1)
Ctrl-Shift-M didn't seem to do anything.
I enabled debug logging in Package Control, restarted ST and looked at the console.
When loading it complained about a 'print' statement in "Selection Evaluator.mathevaluator".
I opened the .py file and replaced the 'print' a Python3 style print statement and now there are no errors, but Ctrl-Shift-M still doesn't do anything

SublimeEvaluate

Hey, I wrote something similar a long time back without the custom functions called SublimeEvaluate. Perhaps we could merge or something?

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.