{"id":22865545,"url":"https://github.com/tecfu/is-multiple-of","last_synced_at":"2025-03-31T09:47:21.290Z","repository":{"id":39770426,"uuid":"245906830","full_name":"tecfu/is-multiple-of","owner":"tecfu","description":"Floating point modulus for javascript.","archived":false,"fork":false,"pushed_at":"2022-12-30T19:50:23.000Z","size":1559,"stargazers_count":0,"open_issues_count":16,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T02:44:47.922Z","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/tecfu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-08T23:48:59.000Z","updated_at":"2020-08-14T04:55:55.000Z","dependencies_parsed_at":"2023-01-31T15:01:10.865Z","dependency_job_id":null,"html_url":"https://github.com/tecfu/is-multiple-of","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/tecfu%2Fis-multiple-of","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecfu%2Fis-multiple-of/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecfu%2Fis-multiple-of/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecfu%2Fis-multiple-of/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tecfu","download_url":"https://codeload.github.com/tecfu/is-multiple-of/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246450403,"owners_count":20779406,"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-12-13T11:37:34.866Z","updated_at":"2025-03-31T09:47:21.266Z","avatar_url":"https://github.com/tecfu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# is-multiple-of\n\n[![Build Status](https://travis-ci.org/tecfu/is-multiple-of.svg?branch=master)](https://travis-ci.org/tecfu/is-multiple-of) [![NPM version](https://badge.fury.io/js/is-multiple-of.svg)](http://badge.fury.io/js/is-multiple-of) [![Coverage Status](https://coveralls.io/repos/github/tecfu/is-multiple-of/badge.svg?branch=master)](https://coveralls.io/github/tecfu/is-multiple-of?branch=master)\n---\n\nFloating point modulus operator functionality for javascript. \nAccurate to 16 digits and 6 decimal places.\n\n---\n\n## Rationale\n\n- javascript can't divide floats accurately: i.e. 4.55 / .05 === 90.999999\n\n```js\n4.55 % .05 === 0         // false\n```\n\nwhereas:\n\n```js\nmultipleOf(4.55, .05)     // true\n```\n\n## Installation\n\n- Node Module\n\n```sh\n$ npm install @tecfu/is-multiple-of\n```\n\n- Browser\n\n```js\nimport multipleOf from 'https://cdn.jsdelivr.net/gh/tecfu/is-multiple-of/dist/is-multiple-of.esm.js'\nlet multipleOf = require('is-multiple-of')   // https://cdn.jsdelivr.net/gh/tecfu/is-multiple-of/dist/is-multiple-of.cjs.js\nlet multipleOf = IsMultipleOf;             // https://cdn.jsdelivr.net/gh/tecfu/is-multiple-of/dist/is-multiple-of.umd.js\n```\n\n## Version Compatibility\n\n| Node Version   |   multipleOf Version    |\n| -------------- | ------------------|\n| 8.0            | \u003e= 1.0            |\n\n\n## Running tests\n\n```sh\n$ npm test\n```\n\n## Pull Requests\n\nPull requests are encouraged!\n\n- Please remember to add a unit test when necessary\n- Please format your commit messages according to the [\"Conventional Commits\"](https://www.conventionalcommits.org/en/v1.0.0/) specification\n\nIf you aren't familiar with Conventional Commits, here's a good [article on the topic](https://dev.to/maniflames/how-conventional-commits-improved-my-git-skills-1jfk)\n\nTL/DR:\n\n- feat: a feature that is visible for end users.\n- fix: a bugfix that is visible for end users.\n- chore: a change that doesn't impact end users (e.g. chances to CI pipeline)\n- docs: a change in the README or documentation\n- refactor: a change in production code focused on readability, style and/or performance.\n\n\n## License\n\n[MIT License](https://opensource.org/licenses/MIT)\n\nCopyright 2020, Tecfu. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftecfu%2Fis-multiple-of","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftecfu%2Fis-multiple-of","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftecfu%2Fis-multiple-of/lists"}