{"id":15038565,"url":"https://github.com/friendlyu/friendlynumbers","last_synced_at":"2025-07-11T16:38:14.842Z","repository":{"id":52430609,"uuid":"93705641","full_name":"FriendlyU/FriendlyNumbers","owner":"FriendlyU","description":"Making numbers friendlier.","archived":false,"fork":false,"pushed_at":"2018-10-31T12:42:17.000Z","size":11,"stargazers_count":6,"open_issues_count":5,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-15T05:05:06.697Z","etag":null,"topics":["hacktoberfest","ios","numbers","numbers-to-words","swift","swift-3","swift-language","swift3"],"latest_commit_sha":null,"homepage":null,"language":"Swift","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/FriendlyU.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.MD","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-08T03:57:45.000Z","updated_at":"2022-10-09T23:38:25.000Z","dependencies_parsed_at":"2022-08-18T02:50:37.791Z","dependency_job_id":null,"html_url":"https://github.com/FriendlyU/FriendlyNumbers","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/FriendlyU/FriendlyNumbers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriendlyU%2FFriendlyNumbers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriendlyU%2FFriendlyNumbers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriendlyU%2FFriendlyNumbers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriendlyU%2FFriendlyNumbers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FriendlyU","download_url":"https://codeload.github.com/FriendlyU/FriendlyNumbers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriendlyU%2FFriendlyNumbers/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264852952,"owners_count":23673533,"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":["hacktoberfest","ios","numbers","numbers-to-words","swift","swift-3","swift-language","swift3"],"created_at":"2024-09-24T20:38:56.635Z","updated_at":"2025-07-11T16:38:14.819Z","avatar_url":"https://github.com/FriendlyU.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FriendlyNumbers\n\nConverts numbers like 1000 to 1K and 1500 to 1.5K.\n\nThis representation of numbers using K (thousand), M (million), and B (billion) is commonly used in banking and games universe to simplify the reading of a big number.\n\n## Installation\n\nFriendlyNumbers is available through [CocoaPods](http://cocoapods.org). \n\nTo install it, simply add the following line to your Podfile:\n\n```ruby\npod 'FriendlyNumbers'\n```\n\n## Usage\n\nThere are two different features available. `FNSimple` and `FNMostSimple`. Both can be used directly onto an integer.\n\n`FNSimple` rounds numbers to the nearest tenths place whereas `FNMostSimple` rounds numbers to the nearest whole number.\n\n## Examples\n\n```swift\nlet number = 1530\nprint(number.FNMostSimple) // prints 1K\n\nlet number = 1530\nprint(number.FNSimple) // prints 1.5K\n\nlet number = 15320\nprint(number.FNMostSimple) // prints 15K\n\nlet number = 15320\nprint(number.FNSimple) // prints 15.3K\n\nlet number = 153200\nprint(number.FNMostSimple) // prints 153K\n\nlet number = 153200\nprint(number.FNSimple) // prints 153.2K\n\nlet number = 1532200\nprint(number.FNMostSimple) // prints 1M\n\nlet number = 1532200\nprint(number.FNSimple) // prints 1.5M\n\nlet number = 15300000\nprint(number.FNMostSimple) // prints 15M\n\nlet number = 15300000\nprint(number.FNSimple) // prints 15.3M\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriendlyu%2Ffriendlynumbers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffriendlyu%2Ffriendlynumbers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriendlyu%2Ffriendlynumbers/lists"}