Overview

The percent (%) operator converts a number to its percentage form by dividing by 100.

  • x% = x ÷ 100
  • Example: 25% = 25 ÷ 100 = 0.25

Percentages are widely used in business, finance, and statistics.

Syntax

number% // Convert to decimal
number * percent% // Calculate percentage of a number

Examples

Example 1: Calculate percentage value
Input: 25%
Result: 0.25
25% = 25 ÷ 100 = 0.25
Example 2: Calculate percentage of a number
Input: 200 * 15%
Result: 30
15% of 200 equals 30
Example 3: Calculate discounted price
Input: 100 - 100 * 20%
Result: 80
Original price 100, after 20% discount is 80
Example 4: Calculate price with tax
Input: 100 + 100 * 8%
Result: 108
Original price 100, with 8% tax is 108
Example 5: Calculate growth percentage
Input: (150 - 100) / 100 * 100
Result: 50
Growth from 100 to 150 is 50%
Example 6: Combined percentage
Input: 50% + 25%
Result: 0.75
0.5 + 0.25 = 0.75

Common Applications

  • Discounts: Calculate sale prices
  • Tax calculation: Calculate prices with tax
  • Interest: Calculate savings or loan interest
  • Statistics: Calculate growth rates and proportions
  • Grades: Calculate score percentages

Important Notes

  1. Percentage results are in decimal form, e.g., 25% = 0.25
  2. The % operator has high precedence
  3. Pay attention to operation order when calculating discounts and taxes
  4. Large percentage values (like 150%) are also valid