{"id":47726925,"url":"https://github.com/thanoulis/tcalc","last_synced_at":"2026-04-02T20:44:37.505Z","repository":{"id":87084675,"uuid":"111235118","full_name":"thanoulis/tcalc","owner":"thanoulis","description":"simple calculator written in core Tcl/Tk","archived":false,"fork":false,"pushed_at":"2024-02-28T19:19:40.000Z","size":133,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-02-28T20:31:11.375Z","etag":null,"topics":["calc","calculator","tcalc","tcl","tcl-tk","tcltk","tk"],"latest_commit_sha":null,"homepage":"","language":"Tcl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thanoulis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2017-11-18T20:02:28.000Z","updated_at":"2024-02-06T15:18:09.000Z","dependencies_parsed_at":"2024-03-05T10:15:11.285Z","dependency_job_id":null,"html_url":"https://github.com/thanoulis/tcalc","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/thanoulis/tcalc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thanoulis%2Ftcalc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thanoulis%2Ftcalc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thanoulis%2Ftcalc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thanoulis%2Ftcalc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thanoulis","download_url":"https://codeload.github.com/thanoulis/tcalc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thanoulis%2Ftcalc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31316007,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["calc","calculator","tcalc","tcl","tcl-tk","tcltk","tk"],"created_at":"2026-04-02T20:44:36.945Z","updated_at":"2026-04-02T20:44:37.498Z","avatar_url":"https://github.com/thanoulis.png","language":"Tcl","funding_links":[],"categories":[],"sub_categories":[],"readme":"----\n\n**tCalc** is a simple calculator written in core [Tcl/Tk](https://www.tcl.tk).\n\n----\n\n### Features\n\n* On Top\n* History\n* Editable entry\n* Resizable Buttons\n* Full Tcl math support\n* Command Line support\n* Customizable precision\n* Runs in GNU/Linux, [Microsoft Windows](#for-microsoft-windows-users) and Unix (MacOS not tested)\n\n----\n\n#### Constants \u0026 Functions\n\n| Constants | Description            |\n|-----------|------------------------|\n| `c()`     | speed of light         |\n| `G()`     | gravitational constant |\n| `g()`     | gravity acceleration   |\n| `e()`     | \u003cspan\u003e\u0026#8455;\u003c/span\u003e   |\n| `pi()`    | \u003cspan\u003e\u0026pi;\u003c/span\u003e      |\n| `phi()`   | \u003cspan\u003e\u0026phi;\u003c/span\u003e     |\n\n| Generic          | Description              | Altenative    |\n|------------------|--------------------------|---------------|\n| `inv(x)`         | inverse x                | `1/x`         |\n| `sqrt(x)`        | \u003cspan\u003e\u0026#8730;\u003c/span\u003ex    |\n| `pow(x,y)`       | x\u003csup\u003ey\u003c/sup\u003e            | `x**y`        |\n| `fmod(x,y)`      | remainder of `x/y`       | `x%y`         |\n| `hypot(a,b)`     | hypotenuse               |\n| `quadf(a,b,c)`   | quadratic formula        |\n| `abs(x)`         | \\|x\\|                    |\n| `exp(x)`         | e\u003csup\u003ex\u003c/sup\u003e            |\n| `factorial(x)`   | x!                       |               |\n| `ln(x)`          | ln(x)                    |\n| `log(x)`         | log\u003csub\u003e10\u003c/sub\u003e(x)      | `log10(x)`    |\n| `logb(base,x)`   | log\u003csub\u003ebase\u003c/sub\u003e(x)    |\n| `am(a,b,..)`     | arithmetic mean          | `avg(a,b,..)` |\n| `gm(a,b,..)`     | geometric mean           |\n| `hm(a,b,..)`     | harmonic mean            |\n| `qm(a,b,..)`     | quadratic mean           | `rms(a,b,..)` |\n| `round(x)`       | nearest integer          |\n| `ceil(x)`        | next smallest integer    |\n| `floor(x)`       | previous largest integer |\n| `min(x,y,..)`    | smallest number          |\n| `max(x,y,..)`    | greatest number          |\n| `median(x,y,..)` | median number            |\n| `fib(x)`         | fibonacci number         |\n\n| Trigonometric | Description        | Type    |\n|---------------|--------------------|---------|\n| `sind(x)`     | sine               | degrees |\n| `cosd(x)`     | cosine             | degrees |\n| `tand(x)`     | tangent            | degrees |\n| `asind(x)`    | arc sine           | degrees |\n| `acosd(x)`    | arc cosine         | degrees |\n| `atand(x)`    | arc tangent        | degrees |\n| `sin(x)`      | sine               | radians |\n| `cos(x)`      | cosine             | radians |\n| `tan(x)`      | tangent            | radians |\n| `asin(x)`     | arc sine           | radians |\n| `acos(x)`     | arc cosine         | radians |\n| `atan(x)`     | arc tangent        | radians |\n| `sinh(x)`     | hyperbolic sine    | radians |\n| `cosh(x)`     | hyperbolic cosine  | radians |\n| `tanh(x)`     | hyperbolic tangent | radians |\n\n| Economy                              | Description            |\n|--------------------------------------|------------------------|\n| `interest(capital,interest,period)`  | calculate simple ROI   |\n| `cinterest(capital,interest,period)` | calculate compound ROI |\n\n| Date/Time      | Description                         |\n|----------------|-------------------------------------|\n| `days(x,y)`    | calculate days\u003cbr/\u003eformat: `%d%m%Y` |\n| `hours(x,y)`   | calculate hours\u003cbr/\u003eformat: `%H%M`  |\n| `dec2deg(x,y)` | decimals to degrees                 |\n\n| Convert        | Description           |\n|----------------|-----------------------|\n| `c2f(x)`       | Celcius to Fahrenheit |\n| `f2c(x)`       | Fahrenheit to Celcius |\n| `c2k(x)`       | Celcius to Kelvin     |\n| `k2c(x)`       | Kelvin to Celcius     |\n| `inch2cm(x)`   | inches to centimeters |\n| `cm2inch(x)`   | centimeters to inches |\n| `yd2m(x)`      | yards to meters       |\n| `m2yd(x)`      | meters to yards       |\n| `ft2m(x)`      | feet to meters        |\n| `m2ft(x)`      | meters to feet        |\n| `mi2km(x)`     | miles to kilometers   |\n| `km2mi(x)`     | kilometers to miles   |\n| `btu2watt(x)`  | BTU to Watt           |\n| `watt2btu(x)`  | Watt to BTU           |\n\n----\n\n### Screenshot\n\n![Screenshot](screenshot.png \"Screenshot\")\n\n----\n\n### Dependencies\n\n**Tcl** version 8.6 or later.\n\n**Tk** version 8.6 or later.\n\n##### For Microsoft Windows users:\n\n[ActiveTcl](https://www.activestate.com/activetcl) version 8.6 or later.\n\nFor executables go to [Releases](https://github.com/thanoulis/tcalc/releases) section, or download the [latest](https://github.com/thanoulis/tcalc/releases/latest/download/tcalc.exe).\n\nTo run it, after download, right-click-\u003eProperties-\u003eUnblock.\n\n----\n\n### License\n\n**tEdit** is licensed under the **MIT License**.\n\nRead [LICENSE](LICENSE) for details.\n\n----\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthanoulis%2Ftcalc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthanoulis%2Ftcalc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthanoulis%2Ftcalc/lists"}