Name | morefractions JSON |
Version |
0.1.0
JSON |
| download |
home_page | None |
Summary | A package with classes and functions for manipulating fractions |
upload_time | 2024-08-23 19:24:07 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.10 |
license | Te's License |
keywords |
fraction
fractions
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# morefractions
morefractions is a package with classes and functions for manipulating fractions.
## Installation
run the command `pip install -U morefractions`
## Docs
### Class `Fraction`
`class Fraction(numerator: int | float, denominator: int | float = 1)`
Returns a new Fraction with numerator `numerator` and denominator `denominator`.
#### Methods
morefractions.Fraction implements most methods found in section 3.3.8 of [this page](https://docs.python.org/3/reference/datamodel.html#emulating-numeric-types), except for binary operations, such as `<<` or `~`.
Other methods include:
`Fraction.reciprocal() -> Fraction`
Returns the inverse of this Fraction (aka. 1 รท Fraction).
`Fraction.get_type() -> ("proper" | "improper" | "unit")`
Returns a string indicating whether this Fraction is a proper fraction, an improper fraction or a unit fraction.
### Functions
`is_like(x: Fraction, y: Fraction) -> bool`
Returns a boolean indicating whether x and y are like fractions.
Raw data
{
"_id": null,
"home_page": null,
"name": "morefractions",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": "Te Du <tdu0915@gmail.com>",
"keywords": "fraction, fractions",
"author": null,
"author_email": "Te Du <tdu0915@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/87/e5/098f3d76fa494703984e994b010513690f30702748472d0acf916a2bd4af/morefractions-0.1.0.tar.gz",
"platform": null,
"description": "# morefractions\nmorefractions is a package with classes and functions for manipulating fractions.\n\n## Installation\nrun the command `pip install -U morefractions`\n\n## Docs\n\n### Class `Fraction`\n`class Fraction(numerator: int | float, denominator: int | float = 1)`\n\nReturns a new Fraction with numerator `numerator` and denominator `denominator`.\n\n#### Methods\nmorefractions.Fraction implements most methods found in section 3.3.8 of [this page](https://docs.python.org/3/reference/datamodel.html#emulating-numeric-types), except for binary operations, such as `<<` or `~`.\n\nOther methods include:\n\n`Fraction.reciprocal() -> Fraction`\n\nReturns the inverse of this Fraction (aka. 1 \u00f7 Fraction).\n\n`Fraction.get_type() -> (\"proper\" | \"improper\" | \"unit\")`\n\nReturns a string indicating whether this Fraction is a proper fraction, an improper fraction or a unit fraction.\n\n### Functions\n`is_like(x: Fraction, y: Fraction) -> bool`\n\nReturns a boolean indicating whether x and y are like fractions.\n",
"bugtrack_url": null,
"license": "Te's License",
"summary": "A package with classes and functions for manipulating fractions",
"version": "0.1.0",
"project_urls": {
"Changelog": "https://github.com/meowdog011011/morefractions-py/CHANGELOG.md",
"Homepage": "https://github.com/meowdog011011/morefractions-py",
"Issues": "https://github.com/meowdog011011/morefractions-py/issues",
"Repository": "https://github.com/meowdog011011/morefractions-py.git"
},
"split_keywords": [
"fraction",
" fractions"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3918ab775461f0f87266fab3185f9c5554b902f1749c04b8690d3295aeb3bb72",
"md5": "5e94729fa2649cd6bf16d8e1e5066b24",
"sha256": "80f685a0eaa02330bb7276cf7f17460b937ee1ace94e8af67645abfc527af592"
},
"downloads": -1,
"filename": "morefractions-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5e94729fa2649cd6bf16d8e1e5066b24",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 4432,
"upload_time": "2024-08-23T19:24:05",
"upload_time_iso_8601": "2024-08-23T19:24:05.850936Z",
"url": "https://files.pythonhosted.org/packages/39/18/ab775461f0f87266fab3185f9c5554b902f1749c04b8690d3295aeb3bb72/morefractions-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "87e5098f3d76fa494703984e994b010513690f30702748472d0acf916a2bd4af",
"md5": "e5e0b198dd277fea6b97f6b6c1071b40",
"sha256": "8347629ac2e02d084ca040d7f57bbf3bb9307394738738a4eeee8b5924978048"
},
"downloads": -1,
"filename": "morefractions-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "e5e0b198dd277fea6b97f6b6c1071b40",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 4735,
"upload_time": "2024-08-23T19:24:07",
"upload_time_iso_8601": "2024-08-23T19:24:07.089084Z",
"url": "https://files.pythonhosted.org/packages/87/e5/098f3d76fa494703984e994b010513690f30702748472d0acf916a2bd4af/morefractions-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-23 19:24:07",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "meowdog011011",
"github_project": "morefractions-py",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "morefractions"
}