{"id":24296718,"url":"https://github.com/sr-tamim/smart-calculator","last_synced_at":"2026-04-11T06:43:41.667Z","repository":{"id":140986610,"uuid":"473099744","full_name":"sr-tamim/smart-calculator","owner":"sr-tamim","description":"Standard calculator made by SR Tamim using HTML, CSS, JavaScript \u0026 MathJS","archived":false,"fork":false,"pushed_at":"2022-08-15T10:43:50.000Z","size":4824,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T08:26:39.885Z","etag":null,"topics":["calculator","calculator-javascript","css","html","javascript","mathjs","web-calculator"],"latest_commit_sha":null,"homepage":"https://sr-tamim.github.io/smart-calculator","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sr-tamim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-23T08:32:51.000Z","updated_at":"2024-12-10T21:00:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"6aa75c32-f38f-4c6d-a788-ec8d1cfa3023","html_url":"https://github.com/sr-tamim/smart-calculator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sr-tamim/smart-calculator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr-tamim%2Fsmart-calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr-tamim%2Fsmart-calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr-tamim%2Fsmart-calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr-tamim%2Fsmart-calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sr-tamim","download_url":"https://codeload.github.com/sr-tamim/smart-calculator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr-tamim%2Fsmart-calculator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31671629,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["calculator","calculator-javascript","css","html","javascript","mathjs","web-calculator"],"created_at":"2025-01-16T19:41:39.117Z","updated_at":"2026-04-11T06:43:41.644Z","avatar_url":"https://github.com/sr-tamim.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Smart Calculator\n\u003e #### Made by [SR TAMIM](https://sr-tamim.vercel.app)\n\n\nThis is a standard calculator made by SR TAMIM using HTML5, CSS3 \u0026amp; Vanilla JavaScript\n\n- **You can do standard math operations** (add, subtract, multiply, divide)\n- **Get the squared value of any number** (write the number \u0026amp; click on `x²` button)\n- **Find out the square root √ of any positive number** (write any positive number \u0026amp; click on `√x` button)\n- **Use your keyboard to calculate** (Backspace for `AC`, Delete for `Del` \u0026amp; other `number` buttons)\n- **Get your last calculated answer** (Click on `ANS` button)\n- **Operate the calculator in dark or light mode**\n- **You can sync the calculator theme with your device/system theme**\n\n### Visit the amazing calculator now. [Click here](https://sr-tamim.github.io/smart-calculator/) \n#### or visit `https://sr-tamim.github.io/smart-calculator`\n\n----\n\nMy target was to make a smart calculator only using vanilla JavaScript. Until [this commit](https://github.com/sr-tamim/smart-calculator/tree/3080e73ef6a2aae1f59c4b3108c79ad576be0c3b) this calculator was fully working only on vanilla JavaScript.\n\nI always tried to fix the fractional calculation issue (like 0.1 + 0.2 = 0.30000000000000004). I've implemented many changes and spent lots of hours sitting next to my pc for solving that calculation issue. My first try to solve the issue was on [April 14, 2021](https://github.com/sr-tamim/smart-calculator/commit/5a1b375ddf4b6a5afc219ad5fed5cb2658401cc5). I spent my valuable time in solving that issue last on [5 \u0026 6 March, 2022](https://github.com/sr-tamim/smart-calculator/commits/main). All these hard works \u0026 my precious time didn't paid off because the issue didn't totally wiped off. I had managed to solve the issue in multiplication \u0026 division but there were still issues in addition \u0026 subtraction. See the code of how I tried to solve the issue using vanilla JavaScript, [here](https://github.com/sr-tamim/smart-calculator/commit/61cf1c17f1f3a1350fce487685a16b8e835d998c#diff-4dccfa52287c300a49229f1c3769921fc11bf8f42b2250fd5caa5aee45eb4163R270)\n\nAt last, I gave up \u0026 search in google for any permanent solution. I found [mathjs](https://mathjs.org/) library \u0026 implemented it on this calculator on [March 7, 2022](https://github.com/sr-tamim/smart-calculator/commit/186801a503b46789b0c6ed0ffb2557c672504829). Finally, I hope the calculation issue has been solved.\n\n[Check out](https://sr-tamim.github.io/smart-calculator/) the **Smart Calculator** now \u0026 write down [here](https://github.com/sr-tamim/smart-calculator/issues/new) if you find any bugs or issues.\n\n###### Thanks a lot by [SR TAMIM](https://sr-tamim.vercel.app)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsr-tamim%2Fsmart-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsr-tamim%2Fsmart-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsr-tamim%2Fsmart-calculator/lists"}