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 Object → ValueType → Enum → FormulaResultType
Implements IComparable, ISpanFormattable, IFormattable, IConvertible
Fields
| Name | Value | Description |
|---|---|---|
| Boolean | 0 | Result is true when the numeric value is non-zero. |
| Int | 1 | Result is cast to a 32-bit integer (truncating). |
| Int64 | 2 | Result is cast to a 64-bit integer (truncating). |
| Double | 3 | Result is the raw Double. |
| DateTime | 4 | Result is interpreted as ticks (new DateTime((long)result)). |