Percentage calculatorPercentage calculator
Find a percentage of a number, a percent share, or a percent change in one step.Kisi number ka percentage, percent hissa ya percent change ek hi step mein nikalein.
Three percentage formulasPercentage ke teen formulas
- X% of Y = X ÷ 100 × YY ka X% = X ÷ 100 × Y
- X is what % of Y = X ÷ Y × 100X, Y ka kitna % = X ÷ Y × 100
- Percent change = (new − old) ÷ old × 100Percent change = (naya − purana) ÷ purana × 100
How to build this calculator: mode-switch patternYe calculator kaise banayein: mode-switch pattern
- Add a dropdown with the three formulas.Teen formulas wala dropdown lagayein.
- Keep two number inputs and change only the hint text per mode.Do number inputs rakhein aur har mode ke hisab se sirf hint text badlein.
- Use a switch statement to run the right formula.Sahi formula chalane ke liye switch statement use karein.
- Guard against dividing by zero and show a clear message.Zero se taqseem se bachein aur saaf paigham dikhayein.
- Round to two decimals only when showing the answer.Sirf jawab dikhate waqt do decimal tak round karein.
Frequently asked questionsAksar poochhe jane wale sawal
How do I calculate percentage on a calculator?Calculator par percentage kaise nikalte hain?
To find 20% of 150, multiply 150 by 20 and divide by 100. The answer is 30. The calculator above does this for you.150 ka 20% nikalne ke liye 150 ko 20 se zarb dein aur 100 se taqseem karein. Jawab 30 hai. Upar wala calculator ye khud kar deta hai.
How do I find percent increase or decrease?Percent izafa ya kami kaise nikalein?
Subtract the old number from the new one, divide by the old number, then multiply by 100. A negative result is a decrease.Naye number mein se purana number ghatayein, purane number se taqseem karein, phir 100 se zarb dein. Minus jawab kami hota hai.
Can a percentage be more than 100?Kya percentage 100 se zyada ho sakta hai?
Yes. If a number doubles it has grown by 100%, and if it triples it has grown by 200%.Ji haan. Agar number double ho jaye to 100% izafa hua, aur teen guna ho to 200% izafa hua.