Main Content

isscalingbinarypoint

Determine whether fixed-point numeric type has binary-point scaling

Description

indication = isscalingbinarypoint(numericType) returns 1 (true) if the Simulink.NumericType object numericType represents a fixed-point data type with binary-point scaling and 0 (false) otherwise. A numeric type object can use binary-point scaling if you explicitly specify it or if you specify trivial slope-and-bias scaling (the slope is an integer power of two and the bias is zero).

In Simulink®, a Simulink.NumericType object represents a data type that you can share between different data items in a model. For more information, see Simulink.NumericType.

Input Arguments

collapse all

Target numeric type, specified as a Simulink.NumericType object.

Output Arguments

collapse all

Indication of whether the target object represents a fixed-point type with binary-point scaling, returned as 1 (true) or 0 (false).

Version History

Introduced in R2010b