Skip to content

๐ŸŽ‰ Welcome ๐ŸŽ‰ to the Number Format Converter project! ๐Ÿ”ข This interactive web application ๐Ÿ–ฅ๏ธ allows users ๐Ÿ‘ฅ to convert numbers ๐Ÿ”ข between various formats such as decimal, binary, octal, and hexadecimal. ๐Ÿš€ Built with ReactJS โš›๏ธ, CSS ๐ŸŽจ, and JSX โœจ, this tool provides a comprehensive range of features to handle number conversions and calculations.

Notifications You must be signed in to change notification settings

nidhiupman568/NumberFormat-Converter-Using-React.JS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ”ข Number Format Converter Project Using React.JS ๐Ÿ”ข

๐ŸŽ‰ Welcome ๐ŸŽ‰ to the Number Format Converter project! ๐Ÿ”ข This interactive web application ๐Ÿ–ฅ๏ธ allows users ๐Ÿ‘ฅ to convert numbers ๐Ÿ”ข between various formats such as decimal, binary, octal, and hexadecimal. ๐Ÿš€ Built with ReactJS โš›๏ธ, CSS ๐ŸŽจ, and JSX โœจ, this tool provides a comprehensive range of features to handle number conversions and calculations. ๐Ÿงฎ

๐Ÿ“‹ Description

The Number Format Converter ๐Ÿ”ข is a dynamic web application ๐Ÿ–ฅ๏ธ designed ๐Ÿ“ to assist users ๐Ÿ‘ฅ in converting numbers ๐Ÿ”ข across different formats. ๐ŸŒŸ With its user-friendly interface ๐Ÿ–ฅ๏ธ and powerful features ๐Ÿ”ง, users ๐Ÿ‘ฅ can:

  • Input a number ๐Ÿ”ข and get its representations in binary, octal, decimal, and hexadecimal formats. ๐Ÿ”„
  • Perform rounding ๐Ÿ”ข and display significant digits. โœจ
  • See the fractional part of the number ๐Ÿ”ข as a numerator and denominator. ๐Ÿงฎ
  • Get the integer part of the number ๐Ÿ”ข in word format. ๐Ÿ“

๐Ÿ› ๏ธ Built With

  • ReactJS โš›๏ธ: JavaScript library ๐Ÿ“š for building user interfaces ๐Ÿ–ฅ๏ธ.
  • CSS ๐ŸŽจ: For styling ๐ŸŽจ and making the application visually appealing โœจ.
  • JSX โœจ: Syntax extension for JavaScript ๐Ÿ’ป, allowing you to write HTML elements ๐Ÿ“„ and components ๐Ÿ”ง in ReactJS.

๐Ÿš€ How to Use

  1. Clone ๐Ÿ”„ the repository:

    git clone 'https://github.com/nidhiupman568/NumberFormat-Converter-Using-React.JS.git' ๐Ÿ”„
  2. Navigate ๐Ÿšถโ€โ™‚๏ธ to the project directory:

    cd number-format-converter ๐Ÿ“‚
  3. Install ๐Ÿ“ฅ the required modules:

    npm install number-to-words ๐Ÿ“ฅ
  4. Open ๐Ÿ”“ App.js to see the main component ๐Ÿงฉ and Numberformat.js for conversion logic ๐Ÿงฎ.

  5. Open ๐Ÿ”“ Numberformat.css to view the styling ๐ŸŽจ.

  6. Start ๐Ÿš€ the application by running:

    npm start ๐Ÿš€
  7. Open ๐Ÿ”“ your web browser ๐ŸŒ and navigate to:

    http://localhost:3000/ ๐ŸŒ
    

๐Ÿ“ธ Screenshots (Output)

Hereโ€™s a sneak peek ๐Ÿ–ผ๏ธ of the Number Format Converter ๐Ÿ”ข in action โณ:

number format

๐Ÿ“ Steps to Create the Application

  1. Set Up ๐Ÿ› ๏ธ a new React project ๐Ÿ–ฅ๏ธ using the command:

    npx create-react-app <<name_of_project>> ๐ŸŽ‰
  2. Navigate ๐Ÿšถโ€โ™‚๏ธ to the project folder ๐Ÿ“‚:

    cd <<name_of_project>> ๐Ÿ“‚
  3. Create ๐Ÿ“‚ a folder called components ๐Ÿ“ฆ and add ๐Ÿ“ the following files ๐Ÿ“„:

    • Numberformat.js ๐Ÿ”ข: Contains the logic for number format conversion ๐Ÿงฎ, rounding โœจ, significant digits ๐Ÿ”ข, and word representation ๐Ÿ“.
    • Numberformat.css ๐ŸŽจ: Contains the styling ๐ŸŽจ for the Number Format Converter elements ๐Ÿ–ฅ๏ธ.
  4. Install ๐Ÿ“ฅ the number-to-words module ๐Ÿ› ๏ธ to convert integers into words:

    npm install number-to-words ๐Ÿ“ฅ

Example Code

  • App.js ๐Ÿ–ฅ๏ธ: Imports the Numberformat component ๐Ÿงฉ and exports it ๐Ÿ”„.
  • Numberformat.js ๐Ÿ”ข: Handles conversion logic ๐Ÿงฎ, rounding โœจ, significant digits ๐Ÿ”ข, and word representation ๐Ÿ“.
  • Numberformat.css ๐ŸŽจ: Styles the Number Format Converter ๐Ÿ”ข.

๐ŸŽ‰ Enjoy using the Number Format Converter! ๐ŸŽ‰ Feel free to share ๐Ÿ—ฃ๏ธ your feedback ๐Ÿ“ or contribute ๐Ÿค to the project by making a pull request ๐Ÿš€. Happy converting! ๐Ÿ”ข๐Ÿ’ซ

Getting Started with Create React App

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

npm run eject

Note: this is a one-way operation. Once you eject, you can't go back!

If you aren't satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.

You don't have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

npm run build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

About

๐ŸŽ‰ Welcome ๐ŸŽ‰ to the Number Format Converter project! ๐Ÿ”ข This interactive web application ๐Ÿ–ฅ๏ธ allows users ๐Ÿ‘ฅ to convert numbers ๐Ÿ”ข between various formats such as decimal, binary, octal, and hexadecimal. ๐Ÿš€ Built with ReactJS โš›๏ธ, CSS ๐ŸŽจ, and JSX โœจ, this tool provides a comprehensive range of features to handle number conversions and calculations.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published