Enum AdvExpressionOptions
- Namespace
- NCalc
- Assembly
- NCalc.dll
[Flags]
public enum AdvExpressionOptions
Fields
AcceptCStyleOctals = 8When set, recognizes 0{digits} numeric literals as octals like C programming language does
AcceptCurrencySymbol = 64When set, the current locale's currency symbol is accepted to indicate a decimal number (the symbol itself is skipped).
AcceptUnderscoresInNumbers = 4When set, recognizes and skips underscore characters in numbers
CalculatePercent = 16When set, the
%character (per cent) is used to calculate percent rather than modulo (default in ncalc)None = 0ParseHumanePeriods = 128When enabled, supports parsing of periods expressed in a humane form like 3y7mo5w7d3h2min18s
SkipBuiltInDateSeparator = 1When 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 = 2When 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 = 32When 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.