Closed charan-hash closed 6 months ago
@charan-hash is attempting to deploy a commit to the Codinasion Team on Vercel.
A member of the Team first needs to authorize it.
👋🏻 Hey @charan-hash
💖 Thanks for opening this pull request 💖
This PR will be reviewed and merged shortly.
Latest commit: 80bf09af1fbb18be92486845df6bbad86768d918
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
Thanks very much for contributing!
Your pull request has been merged 🎉 You should see your changes appear on the site in approximately 24 hours.
Support this project by giving it a star ⭐.
If you're looking for your next contribution, check out our help wanted issues :zap:
📑 Description
This pull request introduces a Rust program designed to convert distances from kilometers to miles. This is achieved by a straightforward calculation based on the conversion factor where 1 mile is equivalent to approximately 1.609 kilometers.
The key feature of this program is the function
kilometers_to_miles
, which takes a floating-point number representing kilometers and returns an integer representing the corresponding number of miles, rounded down. This function is particularly useful for applications needing approximate distance conversions, such as travel apps or fitness tracking.🐞 Related Issue
Closes #2989
📦 Changes Made
km_to_miles.rs
.kilometers_to_miles
which takes af64
and returns ani32
.