codinasion-archive / codinasion-monorepo

Community Monorepo
https://codinasion.org
MIT License
52 stars 167 forks source link

Create convert_kilometers_to_miles.rs #5643

Closed charan-hash closed 6 months ago

charan-hash commented 6 months ago

📑 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

vercel[bot] commented 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.

codinasion-bot[bot] commented 6 months ago

👋🏻 Hey @charan-hash

💖 Thanks for opening this pull request 💖

This PR will be reviewed and merged shortly.

changeset-bot[bot] commented 6 months ago

⚠️ No Changeset found

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.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

codinasion-bot[bot] commented 6 months ago

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: