nExpoenteNumeric exponent.
AdvPL GuideExp( nExpoente ) --> nAntiLogaritmoComputes e raised to the supplied exponent.
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)
Exp( nExpoente ) --> nAntiLogaritmonExpoenteNumeric exponent.
Numeric e raised to the exponent.
#Include "Protheus.ch"
User Function Ed376()
// Simple mathematical case without hardcoding e.
ConOut(cValToChar(Exp(0)))
Return NilExpected result: 1. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
© 2026 Usina.BR. All rights reserved. TOTVS, Protheus, Microsiga and their respective logos are trademarks of their owners. AdvPL Guide is independent and uses limited, attributed excerpts justified by educational purposes. See the Terms of Use. Terms of Use
Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.