LOGB

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > BuiltIn Functions > Numeric functions >

LOGB

 

Description

 

Returns the logarithm of Number using base Base.

The following formula is applied: LogB = LOG2(Number)/LOG2(Base)

 

Syntax

 

n = LOGB(Base, NumericExpression)

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

Base

Numeric

No

The base of the logarithm.

NumericExpression

Numeric

No

Any numeric expression.

 

Remarks

 

Restrictions

 

See also

 

Numeric functions

 

Examples