jakkcer / ios_calculator Goto Github PK
View Code? Open in Web Editor NEWI made iOS calculator.
I made iOS calculator.
Double型の最大値を超えてしまうため
入力数の最大値を決めて制限を設ける
0.003とうつとき、0.0までは表示されるが0.00が表示されず、3を押したときに0.003と表示される
つまり0.0以降の0が表示されない
小数点の分岐に入ったあとの0の入力について修正する
periodがすでに押されているかの分岐をしているはずがうまく機能していない
分岐の確認をして修正する
##WHY
そもそも0の除算はできない
##WHAT
0で除算したときはそれ用の結果を表示する
ex. ∞, 0では除算できません, など
数字を押した後に=を押して、さらにperiodを押すと"a."のような表示になるが、本来は"."だけ表示されてほしい
=が押されたときの挙動を確認する
演算記号の後に演算記号を押すと一つ目の後ろに追加される形で表示される
ただし演算自体はうまくいっている
末尾の文字が演算記号なら演算記号を置換するようにする
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.