Trunc(Object) Method
Truncates the specified numeric or timestamp to the next lower integer or second, respectively.
Definition
Namespace: GHost.GSharp.PI.ACE
Assembly: GHost.GSharp.PI.ACE (in GHost.GSharp.PI.ACE.dll) Version: 1.2.44.3 (1.2.44.3)
C#
public static Object Trunc(Object value)
VB
Public Shared Function Trunc (value As Object) As Object
Parameters
- Object
- Numeric or timestamp value that needs to be truncated.
Return Value
Object
Possible return values are:
- Value of type Double truncated to next lower integer for numeric value.
- Value of type Date truncated to next lower second for timestamp value.
Remarks
Returns Nothing and raises an error if value is an invalid time string.
See Also
Reference
PIACEBIFunctions Class
Trunc Overload
GHost.GSharp.PI.ACE Namespace