# Scalar class

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

```cs
public sealed class Scalar
```

A node in a constraint system.

## Fields

- [Error](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.scalar/error.md)
- [Id](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.scalar/id.md)
- [Value](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.scalar/value.md)

## Properties

- [IsValid](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.scalar/isvalid.md): Gets whether this scalar is valid. Valid scalars have numeric values.
- [Unset](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.scalar/unset.md): (static) Gets an unset scalar.

## Methods

- [Create](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.scalar/create.md): (static) Create a new scalar.
- [WithValue](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.scalar/withvalue.md): Move this node in space to a new location. Be careful when modifying fixed nodes, it is not always desired.

## Convertors

- [operator implicit](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.scalar/op-implicit.md): (static) Auto-convert a scalar to its ID.
