Coder Social home page Coder Social logo

bornova / numara-calculator Goto Github PK

View Code? Open in Web Editor NEW
89.0 89.0 10.0 31.69 MB

Simple notepad calculator built on Electron, powered by Math.js

Home Page: https://numara.io

License: MIT License

CSS 19.81% JavaScript 46.40% HTML 33.78%
calculator electron mathjs notepad

numara-calculator's People

Contributors

bornova avatar

Stargazers

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

Watchers

 avatar

numara-calculator's Issues

Notification/alerts at top instead of bottom

Hey @bornova,

Me again. :)

Suggestion for the UI. May be better to have the alerts/notifications up top of the interface. Find that when I'm working in the calc in rapid succession, the alerts impact my ability to interact with the input area.

Thanks again for the wonderful app.

custom unit definitions

this is an awesome app, thank you! beautifully designed and works nicely.

Question or feature request, does numara support the definition of custom units? (how?).
What did not work in my experience was to call createUnit straight from within numara.
The function exists, but it is executed several times, which throws an error every time it is called again.
One workaround could be to pass overwrite: true but I could not get it to work.

The background to this question is that I am playing around with custom units for calculating workdays, FTEs (full time equivalents) and billable hours. The following example illustrates how such a calculation can be done directly with mathjs.

#!/usr/bin/env node

import { create, all } from 'mathjs'
const math = create(all)

function p(comment, expression) {
  if(comment) console.log("# " + comment);
  console.log("> " + expression)
  const precision = 2
  console.log(math.format(math.evaluate(expression), precision) + "\n")
}

math.createUnit('Workhour', '1 * hour')
math.createUnit('Workday', '8 * Workhour')
math.createUnit('Workweek', '5 * Workday')
math.createUnit('Workmonth', '20 * Workday')
math.createUnit('Workyear', '220 * Workday')
math.createUnit('FTE', '1 * Workyear / year')

p("One full time equivalent working during half a year results in 110 workdays to be billed... ",
  "1 FTE * 0.5 year to Workday")

p("If we ask 2 FTEs to do the same amount of work (110 workdays), they should finish the job in 1/4 year...",
  "110 Workday / 2 FTE to years")

One idea for how numara could allow custom unit definitions (or any other configuration of the math object, at the users' own risk) would be to allow arbitrary javascript in the text area for user-defined functions. What do you think? - thank you!

[feature request] - settings for decimal separator

It would be nice to have an ability to set decimal separator for input numbers (at least switching between dot/comma).
As you can see on the pic below, most of the world actually uses comma as decimal separator. Which means that on localized keyboards from those green countries numpad dot key generates comma.
obrazek

totals calculate wrong result

hi, not sure what is going on here... totals calculate a false result. maybe because negative numbers are not taken into account correctly? (see attached screenshot) thx Johannes

Screenshot from 2021-07-26 15-58-54

tested in numara 3.4.2

Linux Wayland support for display scaling

Hi,
first off, Numara is amazing! thanks for developing it.
using it on ubuntu with gnome and wayland, if selecting fractional display scaling (125%) the text is blurry:
https://i.imgur.com/R1ITdBG.png
it's the website rendering, vs the app rendering.
I suspect it's because of a lack of wayland support, can you add support for it?

Updates are not installing

Hello,

The program downloads the update, but it seems it cannot install it, as when the program is restarted the the programs starts to download the update again.

Best Regards,
Adriyan

[feature request] - ability to subtract two dates

It would be very useful if there is an ability to subtract two dates. Something like:
2022-01-10 - 2022-01-5 | 5

I realize that 2022-01-10 or 10/01/2022 is ambiguous (subtraction/division) so maybe use a special format like:

date(2022-01-10)
d2022-01-10
2022-01-10t
2022.10.10
10.01.2022

or maybe let the user to specify desired date(time) format in settings?
YYYY-MM-DD_hh:mm:ss

It would be also nice to have an ability to specify in what units to return the result:
date(2022-01-10) - date(2022-01-5) in hours | 120

Unable to auto update since 3.15.3

Hi,

Good day! Great app there! 🙏 Thank you.

Since the above version, auto update doesnot happen. I get the following errors. Hope this helps.


Screenshot 2022-09-21 124619


Screenshot 2022-09-21 125911


Screenshot 2022-09-21 124742


I am Windows 10 Pro 64 bit (21H2 19044.2006) if that helps. Assuming an issue with that particular version, I fully installed 3.15.5 and today when I saw the update, tried auto updating and again saw the above errors. Hence reporting.

Probably a bug

Hello,

I am trying to calculate the following line the the calculator gives me as answer 0:

1/(43.143.149e-6300e3*300e3)

Numara_njJENeDKDx

Best Regards,
Adriyan

Treat comma as decimal sign

For international users, it would be great if comma ',' could be interpreted as a decimal sign.
Either as a setting (select comma or period), or automatically treat both comma and period as a decimal sign.

DevTools always open on start

Running numara 4.5.5 on Arch Linux (based on the amd64.deb package).

Whenever I launch numara, the Chrome/Electron DevTools will open with it. I couldn't spot any toggle for this, so I wondered if it's a bug.

Size of the line spacing

Hello,

many thanks for the wonderful application. I would like to ask you whether it is possible a variable line spacing to be implemented?

Best Regards,
Adriyan

Circling through history

Hello,

would it be possible when the cursor is in a new line ctrl+up/down arrows to circle through entered history?

I also noticed that when the cursor is in new line and the new line starts with arithmetic sign the program performs the operation instead of issuing error:

image

Is that intentional?

Best Regards,
Adriyan

Ability to toggle comma in result copy

Great app. Beats the rest on Windows in terms of appearance and simplify. Thank you! :)

Used Qalculate prior and the ability to have different settings for the comma/thousands-separator between appearance and copy was great. Many financial apps complain when a comma is present in the pasted value. Yet, it's great to have it visually in the calculator.

Sugestion possibility of tabs

Hello,

would it be possible tabs to be implemented? The variables from one tab to be accessible from different tab?

Best Regards,
Adriyan

Exponent limits in the results

Hello,

I would like to thank you for the all your efforts which you invested and still investing in making the program and providing it to all to enjoy it.

I would like to give you a suggestion. It would be nice if a person can set the limit at which the output to be changed in scientific notation. As example if I set the precision to 4 and the results is between 0.0001 and 0.000000000001 the result is shown as 0. It would be nice if the options is for both positive and negative scientific notations.

image

Best Regards,
Adriyan

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.