FieldUtilitiesCheckPrecisionScaleSingleDouble Method |
Checks the value specified if it overflows the scale specified. this is arbitrary for double and single typed values.
If an overflow is detected, 'None' is ignored as correction action: in that case the original value is returned.
If the scale is > 15, rounding is no longer performed and truncation is performed instead.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.11.0.0 (5.11.23.1114)
Syntax public static Object CheckPrecisionScaleSingleDouble(
Object valueAsObject,
ScaleOverflowCorrectionAction overflowActionToUse,
int scale
)
Public Shared Function CheckPrecisionScaleSingleDouble (
valueAsObject As Object,
overflowActionToUse As ScaleOverflowCorrectionAction,
scale As Integer
) As Object
Parameters
- valueAsObject
- Type: SystemObject
- overflowActionToUse
- Type: SD.LLBLGen.Pro.ORMSupportClassesScaleOverflowCorrectionAction
- scale
- Type: SystemInt32
Return Value
Type:
ObjectRemarks Can be used for single and double. Don't use for Decimals, as the arithmetic used is using Double
See Also