# Value class

Namespace: [Grasshopper2.Types.Constraints.Goals](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.types.constraints.goals.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class Value
```

A goal value. This is either a decimal numeric value, or a string representing an expression.

## Properties

- [Coordinate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.goals.value/coordinate.md): Gets the coordinate which drives this value.
- [Expression](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.goals.value/expression.md): Gets the expression (if any) which drives this value. If the text cannot be compiled, this will return an expression which always yields NaN.
- [Number](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.goals.value/number.md): Gets the number which drives this value. If this value is an expression, this will return decimal.MinValue.
- [Text](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.goals.value/text.md): Gets the text which describes this value.
- [Type](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.goals.value/type.md): Gets the type of this value.

## Methods

- [Create](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.goals.value/create.md): (static) Create either a numeric or an expression value.
- [CreateCoordinate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.goals.value/createcoordinate.md): (static) Create a coordinate value.
- [CreateExpression](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.goals.value/createexpression.md): (static) Create an expression value.
- [CreateNumber](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.goals.value/createnumber.md): (static) Create a numeric value.

## Convertors

- [operator implicit](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.goals.value/op-implicit.md): (static) Straight up cast from decimal to goal value.
