Main Content

intmax

Largest positive stored integer value representable by numerictype of fi object

Syntax

x = intmax(a)

Description

x = intmax(a) returns the largest positive stored integer value representable by the numerictype of a.

Examples

a = fi(pi, true, 16, 12);
x = intmax(a)
x = 

       32767

          DataTypeMode: Fixed-point: binary point scaling
            Signedness: Signed
            WordLength: 16
        FractionLength: 0

Version History

Introduced before R2006a