{"id":17419563,"url":"https://github.com/bendrucker/round-precision","last_synced_at":"2025-09-09T11:16:36.414Z","repository":{"id":33940332,"uuid":"37665351","full_name":"bendrucker/round-precision","owner":"bendrucker","description":"Round a number to a specified decimal precision","archived":false,"fork":false,"pushed_at":"2019-08-19T21:41:30.000Z","size":6,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T00:03:42.568Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/bendrucker.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":"2015-06-18T14:46:26.000Z","updated_at":"2019-07-12T17:17:20.000Z","dependencies_parsed_at":"2022-07-13T17:00:39.113Z","dependency_job_id":null,"html_url":"https://github.com/bendrucker/round-precision","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fround-precision","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fround-precision/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fround-precision/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fround-precision/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bendrucker","download_url":"https://codeload.github.com/bendrucker/round-precision/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248981261,"owners_count":21193146,"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-17T02:26:29.350Z","updated_at":"2025-04-15T00:04:32.161Z","avatar_url":"https://github.com/bendrucker.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# round-precision [![Build Status](https://travis-ci.org/bendrucker/round-precision.svg?branch=master)](https://travis-ci.org/bendrucker/round-precision) [![Greenkeeper badge](https://badges.greenkeeper.io/bendrucker/round-precision.svg)](https://greenkeeper.io/)\n\n\u003e Round a number to a specified decimal precision\n\n\n## Install\n\n```\n$ npm install --save round-precision\n```\n\n\n## Usage\n\n```js\nvar roundPrecision = require('round-precision')\nroundPrecision(12.34, 1)\n//=\u003e 12.3\n```\n\n## API\n\n#### `roundPrecision(value, places)` -\u003e `number`\n\n##### value\n\n*Required*  \nType: `number`\n\nA finite number to round.\n\n##### value\n\n*Required*  \nType: `number`\n\nA non-negative number of integer places.\n\n## License\n\nMIT © [Ben Drucker](http://bendrucker.me)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendrucker%2Fround-precision","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbendrucker%2Fround-precision","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendrucker%2Fround-precision/lists"}