Table of Contents

Class MathOptions

Namespace
NCalc.Helpers
Assembly
NCalc.Core.dll
public sealed class MathOptions
Inheritance
MathOptions
Inherited Members

Properties

AllowBooleanCalculation

Allows arithmetic operations with bool values.

public bool AllowBooleanCalculation { get; init; }

Property Value

bool

FloatingPointNumberType

Gets the default parsed floating point number type.

public FloatingPointNumberType FloatingPointNumberType { get; init; }

Property Value

FloatingPointNumberType

IntegerNumberType

Gets the default parsed integer number type.

public IntegerNumberType IntegerNumberType { get; init; }

Property Value

IntegerNumberType

MidpointRounding

Gets the midpoint rounding strategy.

public MidpointRounding MidpointRounding { get; init; }

Property Value

MidpointRounding

OverflowProtection

Checks arithmetic binary operations for overflow.

public bool OverflowProtection { get; init; }

Property Value

bool