LibreOffice Module connectivity (master) 1
|
ROUND(X) ROUND(X,D) Returns the argument X, rounded to the nearest integer. More...
#include <FNumericFunctions.hxx>
Protected Member Functions | |
virtual ORowSetValue | operate (const std::vector< ORowSetValue > &lhs) const override |
virtual ORowSetValue | operate (const std::vector< ORowSetValue > &lhs) const =0 |
Additional Inherited Members | |
Public Member Functions inherited from connectivity::file::ONthOperator | |
virtual void | Exec (OCodeStack &) override |
virtual void | Exec (OCodeStack &)=0 |
Public Member Functions inherited from connectivity::file::OCode | |
virtual | ~OCode () |
OCode (OCode &&)=default | |
OCode (const OCode &)=default | |
OCode ()=default | |
OCode & | operator= (const OCode &)=default |
OCode & | operator= (OCode &&)=default |
ROUND(X) ROUND(X,D) Returns the argument X, rounded to the nearest integer.
With two arguments rounded to a number to D decimals.
SELECT ROUND(-1.23); -> -1 SELECT ROUND(-1.58); -> -2 SELECT ROUND(1.58); -> 2 SELECT ROUND(1.298, 1); -> 1.3 SELECT ROUND(1.298, 0); -> 1 SELECT ROUND(23.298, -1); -> 20
Definition at line 124 of file FNumericFunctions.hxx.
|
overrideprotectedvirtual |
Implements connectivity::file::ONthOperator.
Definition at line 80 of file FNumericFunctions.cxx.