repl.txt (783B)
1 2 {{alias}}( [dtype1, dtype2] ) 3 Returns the array data type with the smallest size and closest "kind" to 4 which array data types can be safely cast. 5 6 If not provided data types, the function returns a type promotion table. 7 8 If a data type to which data types can be safely cast does *not* exist (or 9 is not supported), the function returns `-1`. 10 11 If provided an unrecognized data type, the function returns `null`. 12 13 Parameters 14 ---------- 15 dtype1: string (optional) 16 Array data type. 17 18 dtype2: string (optional) 19 Array data type. 20 21 Returns 22 ------- 23 out: Object|string|integer|null 24 Promotion rule(s). 25 26 Examples 27 -------- 28 > var out = {{alias}}( 'float32', 'int32' ) 29 'float64' 30 31 See Also 32 -------- 33