All Projects → lin-xin → calculator

lin-xin / calculator

Licence: other
基于 Electron + javascript 实现的桌面计算器应用

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to calculator

bezos-calculator
Small app that shows how much Jeff Bezos gained since the user started reading the page.
Stars: ✭ 46 (-19.3%)
Mutual labels:  calculator
gpacalculator
GPA Calculator for IIITA Curriculum
Stars: ✭ 39 (-31.58%)
Mutual labels:  calculator
react-native-calculator
React Native Calculator and Calculator Input Component
Stars: ✭ 23 (-59.65%)
Mutual labels:  calculator
descent-app
Top of descent path calculator. Let's calculate your descent!
Stars: ✭ 28 (-50.88%)
Mutual labels:  calculator
Desktop-Applications-JavaFX
JavaFX Open Source Projects
Stars: ✭ 69 (+21.05%)
Mutual labels:  calculator
awesome-calculators
😎 A curated list of resources related to calculators!
Stars: ✭ 97 (+70.18%)
Mutual labels:  calculator
simply-djs
A Simple, Easy and Beginner friendly Discord.js Package for everyone. Uses Discord.js v13
Stars: ✭ 62 (+8.77%)
Mutual labels:  calculator
elcalc
➗ Cross-Platform calculator built with Electron!
Stars: ✭ 88 (+54.39%)
Mutual labels:  calculator
calcuMLator
An intelligently dumb calculator that uses machine learning
Stars: ✭ 30 (-47.37%)
Mutual labels:  calculator
binance-profit-calculator
Just some Trade History import tool to see how much profit you made. If you have bags (unsold coins) it tries to take those into account as well.
Stars: ✭ 30 (-47.37%)
Mutual labels:  calculator
Binary-Calculator-JavaScript
📱 A handy Calculator for Binary operations, that works on all Devices 📱 💻 🖥 | ⛓ https://play.google.com/store/apps/details?id=com.binarycalculator.ayidouble.binarycalculator.app ⛓
Stars: ✭ 45 (-21.05%)
Mutual labels:  calculator
LoanJS
Calculate loan in js (browser/node.js) for equal installments, installments decreasing, the sum of interest, etc.
Stars: ✭ 20 (-64.91%)
Mutual labels:  calculator
rclc
Mathematical expression calculator with big integers, floats, common fractions, and complex numbers support
Stars: ✭ 24 (-57.89%)
Mutual labels:  calculator
CaliburnMicro-Calculator
A simple Calculator using Caliburn.Micro (WPF with MVVM)
Stars: ✭ 19 (-66.67%)
Mutual labels:  calculator
C-Sharp-Learning-Journey
Some of the projects i made when starting to learn c#, winfroms and wpf
Stars: ✭ 95 (+66.67%)
Mutual labels:  calculator
MSCalculator
Using Maplestory material and reverse Polish algorithm to complete the Android calculator.
Stars: ✭ 14 (-75.44%)
Mutual labels:  calculator
Shell-Scripts
Shell scripts about some basic topics, current time, calculator, sorting, restaurant and more.
Stars: ✭ 100 (+75.44%)
Mutual labels:  calculator
crisp
A Minimal Lispy Calculator
Stars: ✭ 15 (-73.68%)
Mutual labels:  calculator
calculator
➗ Calculator with decimals, negative values, percentages.
Stars: ✭ 68 (+19.3%)
Mutual labels:  calculator
dino-run-ce
A clone of Google Chrome's dinosaur game for the TI-84+CE
Stars: ✭ 14 (-75.44%)
Mutual labels:  calculator

calculator

基于 Electron + javascript 实现的桌面计算器应用。

相关文章:Electron 实战桌面计算器应用

介绍

我这里通过 Electron 实现了仿 iPhone 的计算器,通过菜单可以切换横屏和竖屏,横屏有更多的运算。

而对于 JavaScript 进行浮点数计算来说,精度丢失是个很大问题,所以我这里使用了第三方库 math.js 来解决这个精度的问题。

尽可能的实现了跟 iPhone 一样的运算:

  • 1 + 2 × 3 = 7
  • 3 += 6 (再按 = 等于 9)
  • 0.1 + 0.2 = 0.3 (浮点数精度处理)

效果图

Image text Image text

环境

  • windows 7
  • Electron v1.7.5

运行

git clone https://github.com/lin-xin/calculator.git
npm install
npm start

就会运行起来了。

构建

npm run build:win

则会在项目中生成个 /计算器-win32-x64 文件夹,打开里面的 计算器.exe 即可打开计算器。

或者

npm run dist

则会生成 dist/ 文件夹,里面有应用的安装包,就可以双击安装了。安装过程中可能会有360卫士等提示危险,不用管继续安装就可以。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].