Skip to content
SurfaceDocs
FRGet started
DocsModel reference

managedApproximateRealValue

Properties, variants, types and bounds for managedApproximateRealValue.

This reference describes the full structure of managedApproximateRealValue. Paths include nested objects, list items and conditional branches. A branch selected by kind, contract or mode only admits its own properties.

Structure and values

Field Options / expected values Description
kind "real" Required. Selects the variant and the properties admitted in this branch.
representation "binary64" Required. Defines representation for this object. Observe the type, variants and bounds in the Options column.
precisionBits 53 Required. Defines precision Bits for this object. Observe the type, variants and bounds in the Options column.
minimum number Required. Cardinality or budget bound for the named resource. Exceeding the bound is refused; null denotes no bound only where admitted by the schema.
maximum number Required. Cardinality or budget bound for the named resource. Exceeding the bound is refused; null denotes no bound only where admitted by the schema.
tolerance closed object Required. Defines tolerance for this object. Observe the type, variants and bounds in the Options column.
tolerance.absolute number; ≥ 0 Required. Defines absolute for this object. Observe the type, variants and bounds in the Options column.
tolerance.relative number; ≥ 0 Required. Defines relative for this object. Observe the type, variants and bounds in the Options column.
unit closed object OR closed object Required. Defines unit for this object. Observe the type, variants and bounds in the Options column.
unit.[kind=dimensionless].kind "dimensionless" Required. Selects the variant and the properties admitted in this branch.
unit.[kind=unit].kind "unit" Required. Selects the variant and the properties admitted in this branch.
unit.[kind=unit].key string; min length 1; max length 120; /^[a-z][a-z0-9-]*$/u Required. Stable semantic identifier used by references; changing it changes identity.

Reading the contract

A path ending in [] describes each list item; {key} describes each dictionary value. The ↻ marker refers to the same recursive expression. Closed objects reject additional properties. Semantic validation denotes an additional check: matching a type does not make a reference, permission or transition valid. References must resolve in the Model and the current user context.

An older variant cannot accept properties belonging to a newer variant. The compiler checks the version and consistency of the complete Model.

Structural example

This fragment passes the schema for this section. Its business references must be defined in the enclosing Model.

{
  "kind": "real",
  "representation": "binary64",
  "precisionBits": 53,
  "minimum": 0,
  "maximum": 0,
  "tolerance": {
    "absolute": 0,
    "relative": 0
  },
  "unit": {
    "kind": "dimensionless"
  }
}

Complete Model index · Build a Model

Applied examples : Required text and business choices

Company uses required text input; Status uses a declared list of choices.

Configuration

Contract object managedApproximateRealValue. Properties and accepted values.

{
  "kind": "real",
  "representation": "binary64",
  "precisionBits": 53,
  "minimum": 0,
  "maximum": 0,
  "tolerance": {
    "absolute": 0,
    "relative": 0
  },
  "unit": {
    "kind": "dimensionless"
  }
}

Variation and connection

Fragment placed in forms[].fields[]. Properties and accepted values.

{
  "contract": "WorkspaceFormControl@2",
  "repeatable": false,
  "key": "status",
  "label": "Status",
  "input": "choice",
  "binding": {
    "kind": "field",
    "fieldKey": "status"
  },
  "required": true,
  "ruleKeys": [],
  "options": [
    "prospect",
    "active"
  ]
}

UI layout example

The illustrative layout below places this configuration in the Clients/Quotes app. Insert each fragment at the stated location, with Field, Query and Action references matching the Model declarations.

  1. Client identity
  2. Notes and follow-up
  3. Settings
  4. Linked quotes
ILLUSTRATIVE LAYOUTClients / Quotes app
SurfaceClients / North StudioExample
managedApproximateRealValuemanagedApproximateRealValue
Clients
MODEL CONTEXTNorth StudioDeclarative configuration
kind
real
representation
binary64
precisionBits
53
minimum
0
maximum
0

Values above follow the configuration fragment; references resolve in the complete Model.

Search for a concept, field or action.Esc