LibreOffice Module connectivity (master) 1
Protected Member Functions | List of all members
connectivity::file::OOp_Round Class Reference

ROUND(X) ROUND(X,D) Returns the argument X, rounded to the nearest integer. More...

#include <FNumericFunctions.hxx>

Inheritance diagram for connectivity::file::OOp_Round:
[legend]
Collaboration diagram for connectivity::file::OOp_Round:
[legend]

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
 
OCodeoperator= (const OCode &)=default
 
OCodeoperator= (OCode &&)=default
 

Detailed Description

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.

Member Function Documentation

◆ operate()

ORowSetValue OOp_Round::operate ( const std::vector< ORowSetValue > &  lhs) const
overrideprotectedvirtual

Implements connectivity::file::ONthOperator.

Definition at line 80 of file FNumericFunctions.cxx.


The documentation for this class was generated from the following files: