Table of Contents

Enum ExpressionOptions

Namespace
NCalc
Assembly
NCalc.Core.dll

Options used for both parsing and evaluation of an expression.

[Flags]
public enum ExpressionOptions

Fields

AllowBooleanCalculation = 512

Allow calculation with bool values.

AllowCharValues = 4096

Parse single quoted strings as char.

AllowNullOrEmptyExpressions = 16384

Return the value instead of throwing an exception when the expression is null or empty.

AllowNullParameter = 128

Defines a "null" parameter and allows comparison of values to null.

CaseInsensitiveStringComparer = 32

Specifies the use of CaseInsensitiveComparer for comparisons.

DecimalAsDefault = 64

Uses decimals instead of doubles as default floating point data type.

IgnoreCaseAtBuiltInFunctions = 2

Specifies case-insensitive matching for built-in functions.

IterateParameters = 8

Treats parameters as arrays and returns a set of results.

NoCache = 4

No-cache mode. Ignores any pre-compiled expression in the cache.

NoStringTypeCoercion = 8192

Disables coercion of string values to other types.

None = 0

Specifies that no options are set.

OrdinalStringComparer = 256

Use ordinal culture on string compare.

OverflowProtection = 1024

Check for arithmetic binary operation overflow.

RoundAwayFromZero = 16

When using Round(), if a number is halfway between two others, it is rounded toward the nearest number that is away from zero.

StrictTypeMatching = 32768

Enables strict type matching, where comparisons between objects of different types will return false.

StringConcat = 2048

Concat values as strings instead of arithmetic addition.