FunctionspercentageOn this pagepercentage Calculates the percentage of a part relative to a whole. Parameters ParameterTypeOptionalDefaultDescriptionpartialValuenumberfalseThe partial value.totalVluenumberfalseThe total value. Returns number Example percentage(5, 10); // 50