---
layout: page
title: "Scalar To Array"
node_type: "lib.array.conversion.ScalarToArray"
namespace: "lib.array.conversion"
---

**Type:** `lib.array.conversion.ScalarToArray`

**Namespace:** `lib.array.conversion`

## Description

Convert a scalar value to a single-element array.
    scalar, array, conversion, type

    Use cases:
    - Prepare scalar inputs for array operations
    - Create constant arrays for computations
    - Initialize array values in workflows

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|----------|
| value | `(float | int)` | Scalar value to convert to array | `0` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `np_array` |  |

## Metadata

## Related Nodes

Browse other nodes in the [lib.array.conversion](../) namespace.

