Navigation:  thinBasic Modules > Core > Numeric handling >

LOGB

Previous pageReturn to chapter overviewNext page

 

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 Handling,

 

Examples

 

 

 

 

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com