Percentage Calculator
Percentage Calculator creates a form that takes two inputs: a number and a percentage. When the user clicks the "Calculate" button, it multiplies the number and percentage together and displays the result in a read-only input field. The toFixed() method is used to limit the result to two decimal places. The styling is kept simple, with a centered container and some basic input and button styling.
শতাংশ ক্যালকুলেটর একটি ফর্ম তৈরি করে যা দুটি ইনপুট নেয়: একটি সংখ্যা এবং একটি শতাংশ৷ যখন ব্যবহারকারী "গণনা করুন" বোতামে ক্লিক করেন, তখন এটি সংখ্যা এবং শতাংশকে একসাথে গুণ করে এবং ফলাফলটি শুধুমাত্র পঠনযোগ্য ইনপুট ক্ষেত্রে প্রদর্শন করে। দ্যস্থির() ফলাফল দুটি দশমিক স্থানে সীমাবদ্ধ করতে পদ্ধতি ব্যবহার করা হয়। একটি কেন্দ্রীভূত ধারক এবং কিছু মৌলিক ইনপুট এবং বোতাম স্টাইলিং সহ স্টাইলিং সহজ রাখা হয়।
No comments:
Post a Comment