Table of Contents

Enum AdvExpressionOptions

Namespace
NCalc
Assembly
NCalc.dll
[Flags]
public enum AdvExpressionOptions

Fields

AcceptCStyleOctals = 8

When set, recognizes 0{digits} numeric literals as octals like C programming language does

AcceptCurrencySymbol = 64

When set, the current locale's currency symbol is accepted to indicate a decimal number (the symbol itself is skipped).

AcceptUnderscoresInNumbers = 4

When set, recognizes and skips underscore characters in numbers

CalculatePercent = 16

When set, the % character (per cent) is used to calculate percent rather than modulo (default in ncalc)

None = 0
ParseHumanePeriods = 128

When enabled, supports parsing of periods expressed in a humane form like 3y7mo5w7d3h2min18s

SkipBuiltInDateSeparator = 1

When extended options are used, disables the use of the date separator character of the current culture during parsing of dates. When the flag is not set and extended options are used, both the date separator character of the current culture and the date separator specified in the extended options ('.', usually) is used.

SkipBuiltInTimeSeparator = 2

When extended options are used, disables the use of the time separator character of the current culture during parsing of times. When the flag is not set and extended options are used, both the time separator character of the current culture and the time separator specified in the extended options is used.

UseResultReference = 32

When set, the @ character (at) is used to reference a previous evaluation's result. For this, the EvaluateFunction event is fired with @ as the function name.