{"id":15620729,"url":"https://github.com/justjavac/deno_ieee754","last_synced_at":"2026-05-04T02:31:23.837Z","repository":{"id":52305755,"uuid":"285711292","full_name":"justjavac/deno_ieee754","owner":"justjavac","description":"Parse IEEE754 floating point numbers for Deno","archived":false,"fork":false,"pushed_at":"2022-08-03T13:49:51.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-20T22:07:13.272Z","etag":null,"topics":["deno","deno-mod","deno-module","deno-modules","denomod","ieee","ieee754","math"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/justjavac.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}},"created_at":"2020-08-07T01:48:39.000Z","updated_at":"2022-02-08T08:55:14.000Z","dependencies_parsed_at":"2022-09-03T07:25:41.232Z","dependency_job_id":null,"html_url":"https://github.com/justjavac/deno_ieee754","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":"justjavac/deno_starter","purl":"pkg:github/justjavac/deno_ieee754","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno_ieee754","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno_ieee754/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno_ieee754/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno_ieee754/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justjavac","download_url":"https://codeload.github.com/justjavac/deno_ieee754/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno_ieee754/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32592318,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"online","status_checked_at":"2026-05-04T02:00:06.625Z","response_time":58,"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":["deno","deno-mod","deno-module","deno-modules","denomod","ieee","ieee754","math"],"created_at":"2024-10-03T09:02:18.463Z","updated_at":"2026-05-04T02:31:23.817Z","avatar_url":"https://github.com/justjavac.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deno_ieee754\n\n[![tag](https://img.shields.io/github/release/justjavac/deno_ieee754)](https://github.com/justjavac/deno_ieee754/releases)\n[![ci](https://github.com/justjavac/deno_ieee754/actions/workflows/ci.yml/badge.svg)](https://github.com/justjavac/deno_ieee754/actions/workflows/ci.yml)\n[![license](https://img.shields.io/github/license/justjavac/deno_ieee754)](https://github.com/justjavac/deno_ieee754/blob/master/LICENSE)\n\nParse IEEE754 floating point numbers for Deno.\n\n## Usage\n\n```ts\nimport * as ieee754 from \"https://deno.land/x/ieee754/mod.ts\";\n// or\n// import read from \"https://deno.land/x/ieee754/read.ts\";\n// import write from \"https://deno.land/x/ieee754/write.ts\";\n\nconst buf: Uint8Array = Uint8Array.of(0x42, 0x29, 0xae, 0x14);\nconst f64 = ieee754.read(buf, 0, false, 52, 8);\nconsole.log(f64); // 42.42\n\nconst EPSILON = 0.00001;\nconst f32 = ieee754.read(buf, 0, false, 23, 4);\nconsole.log(Math.abs(f32 - 42.42) \u003c EPSILON); // true\n```\n\nUse with number array:\n\n```ts\nconst arr: number[] = [1, 2, 3]; // a number array\nconst buf = Uint8Array.from(arr); // convert to `Uint8Array`\nconst num = ieee754.read(buf, 0, false, 23, 4);\n```\n\n## APIs\n\n**read**:\n\n```ts\n/**\n * Read IEEE754 floating point numbers from a array.\n * @param buffer the buffer\n * @param offset offset into the buffer\n * @param isLE is little endian?\n * @param mLen mantissa length\n * @param nBytes number of bytes\n */\nfunction read(\n  buffer: Uint8Array,\n  offset: number,\n  isLE: boolean,\n  mLen: number,\n  nBytes: number,\n): number;\n```\n\n**write**:\n\n```ts\n/**\n * Write IEEE754 floating point numbers to a array.\n * @param buffer the buffer\n * @param value value to set\n * @param offset offset into the buffer\n * @param isLE is little endian?\n * @param mLen mantissa length\n * @param nBytes number of bytes\n */\nfunction write(\n  buffer: Uint8Array,\n  value: number,\n  offset: number,\n  isLE: boolean,\n  mLen: number,\n  nBytes: number,\n): void;\n```\n\n### License\n\n[deno_ieee754](https://github.com/justjavac/deno_ieee754) is released under the\nMIT License. See the bundled [LICENSE](./LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustjavac%2Fdeno_ieee754","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustjavac%2Fdeno_ieee754","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustjavac%2Fdeno_ieee754/lists"}