public class MathFunction extends Object
| Constructor and Description |
|---|
MathFunction() |
| Modifier and Type | Method and Description |
|---|---|
static NumValue |
add(ODataProperty property,
ODataType operand)
Creates add function that adds a number to the property value
|
static NumValue |
ceiling(ODataProperty property)
Creates ceiling function that returns the ceiling value of the property
|
static NumValue |
div(ODataProperty property,
ODataType operand)
Creates division function that divides the property value by a number
|
static NumValue |
floor(ODataProperty property)
Creates floor function that returns the floor value of the property
|
static NumValue |
mod(ODataProperty property,
ODataType operand)
Creates modulo function that calculates the remainder of a division of
the property value by a number
|
static NumValue |
mul(ODataProperty property,
ODataType operand)
Creates multiplication function that multiplies a number with the property value
|
static NumValue |
round(ODataProperty property)
Creates round function that returns the rounded property value
|
static NumValue |
sub(ODataProperty property,
ODataType operand)
Creates subtraction function that subtracts a number from the property value
|
public static NumValue round(ODataProperty property)
property - An ODataProperty object representing the property of an entitypublic static NumValue floor(ODataProperty property)
property - An ODataProperty object representing the property of an entitypublic static NumValue ceiling(ODataProperty property)
property - An ODataProperty object representing the property of an entitypublic static NumValue add(ODataProperty property, ODataType operand)
property - An ODataProperty object representing the property of an entityoperand - An ODataType object representing the numberpublic static NumValue mul(ODataProperty property, ODataType operand)
property - An ODataProperty object representing the property of an entityoperand - An ODataType object representing the numberpublic static NumValue div(ODataProperty property, ODataType operand)
property - An ODataProperty object representing the property of an entityoperand - An ODataType object representing the numberpublic static NumValue sub(ODataProperty property, ODataType operand)
property - An ODataProperty object representing the property of an entityoperand - An ODataType object representing the numberpublic static NumValue mod(ODataProperty property, ODataType operand)
property - An ODataProperty object representing the property of an entityoperand - An ODataType object representing the numberCopyright © 2020 SAP. All Rights Reserved.