Navigation:  ThinBASIC Modules > Core (thinBasic Core Engine) > Numeric functions >

PCT

Previous pageReturn to chapter overviewNext page

 

Description

 

Return the % of Value1 against Value2.

 

Syntax

 

n = PCT(Value1, Value2 [, NumberOfDecimalPlaces])

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

Value1

Numeric

No


Value2

Numeric

No


NumberOfDecimalPlaces

Numeric

Yes

If present, returned value will be fixed to the number of decimal places indicated

 

Remarks

 

Restrictions

 

See also

 

Numeric Handling,

 

Examples