Products & Services Solutions Academia Support User Community Company

Learn more about Fixed-Point Toolbox   

realmax - Largest positive fixed-point value or quantized number

Syntax

realmax(a)
realmax(q)

Description

realmax(a) is the largest real-world value that can be represented in the data type of fi object a. Anything larger overflows.

realmax(q) is the largest quantized number that can be represented where q is a quantizer object. Anything larger overflows.

Examples

q = quantizer('float',[6 3]);
x = realmax(q)

x =

    14

Algorithm

If q is a floating-point quantizer object, the largest positive number, x, is

If q is a signed fixed-point quantizer object, the largest positive number, x, is

If q is an unsigned fixed-point quantizer object (datamode = 'ufixed'), the largest positive number, x, is

See Also

eps, exponentmax, exponentmin, fractionlength, intmax, intmin, lowerbound, lsb, quantizer, range, realmin, upperbound

  


Free Early Verification Kit

Learn how to apply early verification to your development process through these technical resources.

How much time do you spend on testing to ensure implementation meets system-level requirements?

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS