{"id":22437367,"url":"https://github.com/mhatxotic/clc","last_synced_at":"2025-03-27T08:44:18.201Z","repository":{"id":263887261,"uuid":"686360375","full_name":"Mhatxotic/Clc","owner":"Mhatxotic","description":"A very simple command-line calculator that uses the Lua interpreter.","archived":false,"fork":false,"pushed_at":"2023-09-02T14:28:50.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T13:45:31.564Z","etag":null,"topics":["calculator","clc","lua"],"latest_commit_sha":null,"homepage":"https://www.lua.org/docs.html","language":"C++","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mhatxotic.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":"2023-09-02T14:28:49.000Z","updated_at":"2023-09-02T14:33:53.000Z","dependencies_parsed_at":"2024-11-20T20:48:16.667Z","dependency_job_id":null,"html_url":"https://github.com/Mhatxotic/Clc","commit_stats":null,"previous_names":["mhatxotic/clc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mhatxotic%2FClc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mhatxotic%2FClc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mhatxotic%2FClc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mhatxotic%2FClc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mhatxotic","download_url":"https://codeload.github.com/Mhatxotic/Clc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245813255,"owners_count":20676763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","clc","lua"],"created_at":"2024-12-06T00:12:42.417Z","updated_at":"2025-03-27T08:44:18.180Z","avatar_url":"https://github.com/Mhatxotic.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Command-Line Calculator\n\nA simple utility to perform calculations and advanced calculations from the command-line with help from the *LUA* interpreter.\n\n## Usage\n`clc \u003cexpression\u003e`\n\nWhere `\u003cexpression\u003e` is a typical *LUA* accepted syntax.\n\nSpecify no expression to get the version information and date.\n\n## Advanced\n\nThe `math` namespace is also exposed to the global namespace so the following advanced commands are easily accessable.\n\n| Function | Purpose |\n|---|---|\n| abs(x) | Returns the absolute value of `x`. |\n| acos(x) | Returns the arc cosine of `x` (in *radians*). |\n| asin(x) | Returns the arc sine of `x` (in *radians*). |\n| atan(x) | Returns the arc tangent of `x` (in *radians*). |\n| ceil(x) | Returns the smallest integer larger than or equal to `x`. |\n| cos(x) | Returns the cosine of `x` (assumed to be in *radians*). |\n| deg(x) | Returns the angle `x` (given in *radians*) in *degrees*. |\n| exp(x) | Returns the value `e` power `x`. |\n| floor(x) | Returns the largest integer smaller than or equal to `x`. |\n| fmod(x, y) | Returns the remainder of the division of x by y that rounds the quotient towards zero. |\n| huge | The value `HUGE_VAL`, a value larger than or equal to any other numerical value. |\n| log(x) | Returns the natural logarithm of `x`. |\n| max(x, ...) | Returns the *maximum* value among its arguments. |\n| maxinteger | Returns the *maximum* value of a `lua_Integer` type (typically 64-bits). |\n| min(x, ...) | Returns the *minimum* value among its arguments. |\n| mininteger | Returns the *minimum* value of a `lua_Integer` type (typically 64-bits). |\n| modf(x) | Returns two numbers, the *integral* part of `x` and the *fractional* part of `x`. |\n| pi | The value of *pi*. |\n| rad(x) | Returns the angle x (given in `degrees`) in `radians`. |\n| random([m [, n]]) | This function is an interface to the simple pseudo-random generator function rand provided by ANSI C. When called without arguments, returns a uniform pseudo-random real number in the range `0` to ``1`. When called with an integer number `m`, `random` returns a uniform pseudo-random integer in the range `1` to `m`. When called with two integer numbers `m` and `n`, `random` returns a uniform pseudo-random integer in the range `m` to `n`. |\n| randomseed(x) | Sets `x` as the *seed* for the pseudo-random generator: equal seeds produce equal sequences of numbers. |\n| sin(x) | Returns the sine of `x` (assumed to be in `radians`). |\n| sqrt(x) | Returns the square root of `x`. (You can also use the expression `x^0.5` to compute this value.) |\n| tan(x) | Returns the tangent `o`f x (assumed to be in *radians*). |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhatxotic%2Fclc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmhatxotic%2Fclc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhatxotic%2Fclc/lists"}