Click or drag to resize

FieldUtilities.CheckPrecisionScaleSingleDouble 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
)

Parameters

valueAsObject
Type: System.Object
overflowActionToUse
Type: SD.LLBLGen.Pro.ORMSupportClasses.ScaleOverflowCorrectionAction
scale
Type: System.Int32

Return Value

Type: Object
Remarks
Can be used for single and double. Don't use for Decimals, as the arithmetic used is using Double
See Also