# isslopebiasscaled

Determine whether `numerictype` object has nontrivial slope and bias scaling

## Syntax

``tf = isslopebiasscaled(T)``

## Description

example

````tf = isslopebiasscaled(T)` returns `1` (`true`) when `numerictype` `T` has nontrivial slope and bias scaling. Otherwise, it returns `0` (`false`). Slope and bias scaling is trivial when the slope is an integer power of two and the bias is zero.```

## Examples

collapse all

Create a `numerictype` object and determine whether it has nontrivial slope and bias scaling.

`T1 = numerictype`
```T1 = DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 15 ```
`tf = isslopebiasscaled(T1)`
```tf = logical 0 ```
```T2 = numerictype('DataTypeMode','Fixed-point: slope and bias scaling',... 'WordLength', 32, 'Slope', 2^-2, 'Bias', 4)```
```T2 = DataTypeMode: Fixed-point: slope and bias scaling Signedness: Signed WordLength: 32 Slope: 0.25 Bias: 4 ```
`tf = isslopebiasscaled(T2)`
```tf = logical 1 ```
```T3 = numerictype('DataTypeMode','Fixed-point: slope and bias scaling',... 'WordLength', 32, 'Slope', 2^2, 'Bias', 0)```
```T3 = DataTypeMode: Fixed-point: slope and bias scaling Signedness: Signed WordLength: 32 Slope: 2^2 Bias: 0 ```
`tf = isslopebiasscaled(T3)`
```tf = logical 0 ```

## Input Arguments

collapse all

Input `numerictype` object, specified as a scalar.

## Version History

Introduced in R2008a