{"id":13409855,"url":"https://github.com/influenceth/cubit","last_synced_at":"2026-02-11T19:37:45.349Z","repository":{"id":152897225,"uuid":"609631264","full_name":"influenceth/cubit","owner":"influenceth","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-05T11:16:02.000Z","size":294,"stargazers_count":34,"open_issues_count":0,"forks_count":19,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-05T12:23:53.208Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/influenceth.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":"2023-03-04T19:02:35.000Z","updated_at":"2024-04-05T12:23:53.300Z","dependencies_parsed_at":"2023-10-10T21:36:09.674Z","dependency_job_id":"873b05c2-0a9a-45a5-99ee-32e19342f35a","html_url":"https://github.com/influenceth/cubit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"auditless/cairo-template","purl":"pkg:github/influenceth/cubit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influenceth%2Fcubit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influenceth%2Fcubit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influenceth%2Fcubit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influenceth%2Fcubit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/influenceth","download_url":"https://codeload.github.com/influenceth/cubit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influenceth%2Fcubit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29342221,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T18:58:20.535Z","status":"ssl_error","status_checked_at":"2026-02-11T18:56:44.814Z","response_time":97,"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":[],"created_at":"2024-07-30T20:01:03.734Z","updated_at":"2026-02-11T19:37:45.315Z","avatar_url":"https://github.com/influenceth.png","language":"Rust","funding_links":[],"categories":["Additional developer resources","Libraries"],"sub_categories":[],"readme":"# Cubit\n\n![Workflow Tests Status](https://github.com/influenceth/cubit/actions/workflows/test.yaml/badge.svg) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/auditless/cairo-template/blob/main/LICENSE)\n\nA fixed point math library in 64.64 and 32.32 representation built for Cairo \u0026 Starknet. Successor to [**`influenceth/cairo-math-64x61`**](https://github.com/influenceth/cairo-math-64x61)\n\nCubit is currently a WORK IN PROGRESS and should not be used in production (yet). Contributions are welcomed.\n\n## Usage ##\nCubit was built with [**`auditless/cairo-template`**](https://github.com/auditless/cairo-template), reference its installation guide to install dependencies.\n\n## Signed Fixed Point Numbers ##\nA signed 64.64-bit fixed point number is a fraction in which the numerator is a signed 128-bit integer and the denominator is 2^64. Since the denominator stays the same there is no need to store it (as in a floating point value).\n\n64.64 (`f128`) values can represent values in the range of -2^64 to 2^64 with precision to 1e-20.\n32.32 (`f64`) values can represent vlaues in the range of -2^32 to 2^32 with precision to 1e-9.\n\n## Core Library ##\nAll libraries in Cubit are referenced via the core type first, either `cubit::f64` or `cubit::f128`.\n\nWithin each library, the following functions are available:\n`core` includes the following implementations for the `Fixed` type:\n- `Add` (`+`)\n- `AddEq` (`+=`)\n- `Sub` (`-`)\n- `SubEq` (`-=`)\n- `Mul` (`*`)\n- `MulEq` (`*=`)\n- `Div` (`/`)\n- `DivEq` (`/=`)\n- `PartialEq` (`==`, `!=`)\n- `PartialOrd` (`\u003e`, `\u003e=`, `\u003c`, `\u003c=`)\n- `fixed.ceil`\n- `fixed.exp`\n- `fixed.floor`\n- `fixed.ln`\n- `fixed.log2`\n- `fixed.log10`\n- `fixed.pow`\n- `fixed.round`\n- `fixed.sqrt`\n\n`trig` includes precise and fast versions of the following trigonometric functions:\n- `fixed.cos`\n- `fixed.cos_fast`\n- `fixed.sin`\n- `fixed.sin_fast`\n- `fixed.tan`\n- `fixed.tan_fast`\n- `fixed.acos`\n- `fixed.acos_fast`\n- `fixed.asin`\n- `fixed.asin_fast`\n- `fixed.atan`\n- `fixed.atan_fast`\n\n## License\n\n[MIT](https://github.com/influenceth/cubit/LICENSE) © [Unstoppable Games, Inc.](https://unstoppablegames.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfluenceth%2Fcubit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfluenceth%2Fcubit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfluenceth%2Fcubit/lists"}