Returns the array data type with the smallest size and closest "kind" to which array data types can be safely cast.
promotion rule
var dt = promotionRules( 'float32', 'uint32' );
// returns 'float64'
var dt = promotionRules( 'float32', 'foo' );
// returns null
Returns the array data type with the smallest size and closest "kind" to which array data types can be safely cast.
array data type
array data type
promotion rule
var dt = promotionRules( 'float32', 'foo' );
// returns null
var dt = promotionRules( 'bar', 'float32' );
// returns null
var dt = promotionRules( 'bar', 'foo' );
// returns null
Returns a type promotion table displaying array data types with the smallest size and closest "kind" to which array data types can be safely cast.
promotion rule table
var table = promotionRules();
// returns {...}
Promotion rule.