Equana

Docs/NDArray Operations/promote_dtype
Back to NDArray Operations

promote_dtype

Determine the common dtype when combining two dtypes (type promotion).

Syntax

promote_dtype(a: String, b: String) → r

Backends

TypeScriptnumwa

Description

Determine the common dtype when combining two dtypes (type promotion).

Parameters

NameDescription
aFirst dtype name
bSecond dtype name

Returns

String name of the promoted dtype

Examples

Try It
>> promote_dtype("Int32", "Float64")
"Float64"