For syntaxes for which Fixed-Point Designer™ software uses the numerictype
object T
,
the divide
function follows the data type propagation rules listed in the
following table. In most cases, floating-point data types are propagated. This allows you to
write code that can be used with both fixed-point and floating-point inputs.
Data Type of Input fi Objects a
and b | Data Type of numerictype Object T | Data Type of Output c |
---|
Built-in double | Built-in double | Any | Built-in double |
fi
Fixed
| fi
Fixed
| fi
Fixed
| Data type of numerictype object
T |
fi
Fixed
| fi
Fixed
| fi
double
| fi
double
|
fi
Fixed
| fi
Fixed
| fi
single
| fi
single
|
fi
Fixed
| fi
Fixed
| fi
ScaledDouble
| fi
ScaledDouble with properties of
numerictype object T
|
fi
double
| fi
double
| fi
Fixed
| fi
double
|
fi
double
| fi
double
| fi
double
| fi
double
|
fi
double
| fi
double
| fi
single
| fi
single
|
fi
double
| fi
double
| fi
ScaledDouble
| fi
double
|
fi
single
| fi
single
| fi
Fixed
| fi
single
|
fi
single
| fi
single | fi
double
| fi
double
|
fi
single
| fi
single
| fi
single
| fi
single
|
fi
single
| fi
single
| fi
ScaledDouble
| fi
single
|
fi
ScaledDouble
| fi
ScaledDouble
| fi
Fixed
| If either input a or b is of type
fi
ScaledDouble , then output c is of type
fi
ScaledDouble with properties of
numerictype object T . |
fi
ScaledDouble
| fi
ScaledDouble
| fi
double
| fi
double
|
fi
ScaledDouble
| fi
ScaledDouble
| fi
single
| fi
single
|
fi
ScaledDouble
| fi
ScaledDouble
| fi
ScaledDouble
| If either input a or b is of type
fi
ScaledDouble , then output c is of type
fi
ScaledDouble with properties of
numerictype object T . |