Percent operation

Learn how to convert a percentage to a decimal number.

The percent operation converts a number from percentage to decimal format by dividing it by 100.

To use the percent operator, place a % sign after a number, variable, or expression:

/*<operand>*/%

Here is a practical example:

51% // 0.51