3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
12 namespace Civi\Api4\Query
;
17 class SqlFunctionROUND
extends SqlFunction
{
19 protected static $category = self
::CATEGORY_MATH
;
21 protected static function params(): array {
25 'must_be' => ['SqlField', 'SqlNumber'],
26 'label' => ts('Number'),
30 'must_be' => ['SqlNumber'],
31 'label' => ts('Decimal places'),
39 public static function getTitle(): string {
46 public static function getDescription(): string {
47 return ts('Number rounded to specified number of decimal places.');