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.
How to use the % operator with examples
The percent (%) operator converts a number to its percentage form by dividing by 100.
Percentages are widely used in business, finance, and statistics.
number% // Convert to decimal
number * percent% // Calculate percentage of a number