nValorParameter used by the function. Check the Portuguese source page for the detailed original wording while this entry remains under review.
AdvPL GuideRound( <nValor>, <nCasas> )Rounds a numeric value to the requested number of decimal places.
Rounds a numeric value to the requested number of decimal places. This page was created from the historical training material and structured for quick reference, with practical notes and cautious use in current Protheus environments.
Round( <nValor>, <nCasas> )nValorParameter used by the function. Check the Portuguese source page for the detailed original wording while this entry remains under review.
nCasasParameter used by the function. Check the Portuguese source page for the detailed original wording while this entry remains under review.
User Function ExRound()
Local nValue := 10.789
MsgInfo(CValToChar(Round(nValue, 2)))
ReturnThe value is rounded to two decimal places.
© 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.