{"id":16126871,"url":"https://github.com/mikolalysenko/robust-sequence-to-fixed-point","last_synced_at":"2025-04-06T13:18:38.860Z","repository":{"id":16711575,"uuid":"19468427","full_name":"mikolalysenko/robust-sequence-to-fixed-point","owner":"mikolalysenko","description":"Turn a sequence of floats into a fixed point big integer","archived":false,"fork":false,"pushed_at":"2014-05-05T19:45:15.000Z","size":132,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-12T20:39:26.032Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/mikolalysenko.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":"2014-05-05T19:32:10.000Z","updated_at":"2014-05-05T19:45:15.000Z","dependencies_parsed_at":"2022-08-25T13:40:17.912Z","dependency_job_id":null,"html_url":"https://github.com/mikolalysenko/robust-sequence-to-fixed-point","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikolalysenko%2Frobust-sequence-to-fixed-point","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikolalysenko%2Frobust-sequence-to-fixed-point/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikolalysenko%2Frobust-sequence-to-fixed-point/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikolalysenko%2Frobust-sequence-to-fixed-point/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikolalysenko","download_url":"https://codeload.github.com/mikolalysenko/robust-sequence-to-fixed-point/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247485298,"owners_count":20946399,"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":[],"created_at":"2024-10-09T21:40:45.779Z","updated_at":"2025-04-06T13:18:38.841Z","avatar_url":"https://github.com/mikolalysenko.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"robust-sequence-to-fixed-point\n==============================\nConverts a non-overlapping increasing sequence of numbers into a fixed point big number representation.\n\n# Example\n\n```javascript\nvar toFixed = require(\"robust-to-fixed-point\")\n\nvar seq = [Math.pow(2, -200), Math.pow(2, 200)]\n\nconsole.log(toFixed(seq).toString(16))\n```\n\nOutput:\n\n```javascript\n4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\n```\n\n# Install\n\n```\nnpm install robust-sequence-to-fixed-point\n```\n\n# API\n\n```javascript\nvar toFixed = require(\"robust-sequence-to-fixed-point\")\n```\n\n#### `toFixed(seq)`\nConverts a sequence of floats into a fixed point [bignumber](https://www.npmjs.org/package/bn.js).\n\n* `seq` is a sequence of floating point values\n\n**Returns** A fixed point big integer, with the decimal point at 2^1074.\n\n#### `toFixed.DECIMAL_POINT`\nThe binary position of the decimal point\n\nIs always `1074`\n\n# Credits\n(c) 2014 Mikola Lysenko. MIT License","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikolalysenko%2Frobust-sequence-to-fixed-point","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikolalysenko%2Frobust-sequence-to-fixed-point","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikolalysenko%2Frobust-sequence-to-fixed-point/lists"}