nRadianAngle in radians.
AdvPL GuideSin(nRadian) -> nValueCalculates a trigonometric ratio from radians.
Receives radians, not degrees. The example converts 30 degrees using pi/180. The result is approximately 0.5: floating-point comparisons need suitable tolerance. Sine does not calculate inverse sine. (Sources: refs. 1–1.)
Sin(nRadian) -> nValuenRadianAngle in radians.
Numeric.
#Include "Protheus.ch"
User Function Ed664()
Local nRadians := 30 * 3.141592653589793 / 180
// Convert units before calling the function.
ConOut(Sin(nRadians))
Return NilApproximately 0.5, subject to numeric representation. 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.