Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

Exp

Exp( nExpoente ) --> nAntiLogaritmo

Computes e raised to the supplied exponent.

ExpAdvPL
01 · OVERVIEW

Overview

Exp uses the natural-logarithm base. It is neither text expansion nor a ready-made financial calculation: interpretation depends on the mathematical model and input unit. The example uses exponent zero for a simple equality; large inputs and real computations require environment-specific precision and domain analysis. (TOTVS, n.d., ref. 1)

02 · SYNTAX

Syntax

Exp( nExpoente ) --> nAntiLogaritmo

Parameters

nExpoente
NumericRequired

Numeric exponent.

Return value

Numeric e raised to the exponent.

03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function Ed376()
    // Simple mathematical case without hardcoding e.
    ConOut(cValToChar(Exp(0)))
Return Nil
Expected result

Expected result: 1. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Validate numeric input and calculation-specific bounds.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. TOTVS. Exp. TDN. Accessed on 2026-10-26.
Status
Under review
Page created on
Last reviewed on
Original language
Portuguese
Reviewed by
Usina.BR
0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha