PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
RoundDown (Function)
In french: ArrondiInférieur
Returns the value of a numeric value rounded to the nearest lower integer.
Versions 25 and later
WEBDEV - Browser code This function is now available in browser code.
New in version 25
WEBDEV - Browser code This function is now available in browser code.
WEBDEV - Browser code This function is now available in browser code.
Example
ResRound = RoundDown(-16.238167,2) // Returns -16.24
ResRound = RoundDown(3.9) // Returns 3 (no decimal)
ResRound = RoundDown(3.999,2) // Returns 3.99
ResRound = RoundDown(1.9) // Returns 1
ResRound = RoundDown(-1.9) // Returns -2
Syntax
<Result> = RoundDown(<Numeric value> [, <Number of decimals>])
<Result>: Integer or real
Value rounded to the lower number.
<Numeric value>: Real or currency
Numeric value to round.
<Number of decimals>: Optional integer
Number of decimals to return. No decimal is returned if this parameter is not specified.
Remarks
The decimal separator for the real numbers is "." (dot).
Business / UI classification : Neutral code
Component : wd250mat.dll
Minimum version required
  • Version 16
This page is also available for…
Comments
COMO USAR ROUNDDOWN
Nessa aula de hoje

COMO USAR ROUNDDOWN


EDT_RESULTADO=EDT_a*EDT_b
EDT_RESULTADO1=Round(EDT_a*EDT_b,2)

EDT_RESULTADO2=RoundDown(EDT_a*EDT_b,2)

EDT_resultado_texto="sem round ["+EDT_RESULTADO+CR
EDT_resultado_texto+="Round ["+EDT_RESULTADO1+CR
EDT_resultado_texto+="RoundDown ["+EDT_RESULTADO2+CR

// BLOG COM VIDEO E EXEMPLO

http://windevdesenvolvimento.blogspot.com.br/2017/07/aula-1196-comandos-17-rounddown.html

https://www.youtube.com/watch?v=NQHfyvnBRQk


De matos
04 Jul. 2017