Skip to main content

FormulaResultType

Namespace: Meshmakers.Octo.Runtime.Contracts.Formulas

The declared output type a formula's numeric (Double) result is cast back to. Mirrors the cast-back ladder already used by the runtime-query field-filter resolver (FieldFilterResolver.ResolveSearchAttributeValue).

String and non-scalar types are deliberately unsupported — the underlying mXparser engine is numeric. Booleans round-trip as 0/1 and DateTime as ticks.

public enum FormulaResultType

Inheritance ObjectValueTypeEnumFormulaResultType
Implements IComparable, ISpanFormattable, IFormattable, IConvertible

Fields

NameValueDescription
Boolean0Result is true when the numeric value is non-zero.
Int1Result is cast to a 32-bit integer (truncating).
Int642Result is cast to a 64-bit integer (truncating).
Double3Result is the raw Double.
DateTime4Result is interpreted as ticks (new DateTime((long)result)).