fixptbestprec
Determine maximum precision available for fixed-point representation of value
Syntax
out = fixptbestprec(RealWorldValue,TotalBits,IsSigned)
out = fixptbestprec(RealWorldValue,FixPtDataType)
Description
out = fixptbestprec(RealWorldValue,TotalBits,IsSigned)
determines the maximum precision for the fixed-point representation
of the real-world value specified by RealWorldValue.
You specify the number of bits for the fixed- point number with TotalBits,
and you specify whether the fixed-point number is signed with IsSigned.
If IsSigned is 1, the number
is signed. If IsSigned is 0,
the number is not signed. The maximum precision is returned to out.
out = fixptbestprec(RealWorldValue,FixPtDataType)
determines the maximum precision based on the data type specified
by FixPtDataType.
Examples
Version History
Introduced before R2006a