percent

Modified on Tue, 22 Aug 2023

Description

Use this function to calculate the percentage of a value.

Syntax

percent(value, percentage)

Parameters

Input ParameterTypeDescription
valuenumberThe value for which you want to calculate the percentage
percentagenumberThe percentage to calculate

Returns

Return ValueDescription
NumberReturns the calculated percentage value

Sample

ExampleResultDescription
percent(120, 25)30Returns the percentage value of 25% of 120, which is 30.

To view all the Math and Number functions, click here.