Original Symbian headers
Selected EUSER, Window Server, networking, graphics and device declarations
Loading...
Searching...
No Matches
TRealX Class Reference

A class encapsulating an extended precision real value. More...

#include <e32math.h>

Public Types

enum  TRealXOrder { ELessThan =1 , EEqual =2 , EGreaterThan =4 , EUnordered =8 }
 

Public Member Functions

IMPORT_C TRealX ()
 Constructs a default extended precision object.
 
IMPORT_C TRealX (TInt aInt)
 Constructs an extended precision object from a signed integer value.
 
IMPORT_C TRealX (TUint aInt)
 Constructs an extended precision object from an unsigned integer value.
 
IMPORT_C TRealX (TUint aExp, TUint aMantHi, TUint aMantLo)
 Constructs an extended precision object from an explicit exponent and a 64 bit mantissa.
 
IMPORT_C TRealX (const TInt64 &aInt)
 Constructs an extended precision object from a 64 bit integer.
 
IMPORT_C TRealX (TReal32 aReal) __SOFTFP
 Constructs an extended precision object from a single precision floating point number.
 
IMPORT_C TRealX (TReal64 aReal) __SOFTFP
 Constructs an extended precision object from a double precision floating point number.
 
IMPORT_C TRealX & operator= (TInt aInt)
 Assigns the specified signed integer value to this extended precision object.
 
IMPORT_C TRealX & operator= (TUint aInt)
 Assigns the specified unsigned integer value to this extended precision object.
 
IMPORT_C TRealX & operator= (const TInt64 &aInt)
 Assigns the specified 64 bit integer value to this extended precision object.
 
IMPORT_C TRealX & operator= (TReal32 aReal) __SOFTFP
 Assigns the specified single precision floating point number to this extended precision object.
 
IMPORT_C TRealX & operator= (TReal64 aReal) __SOFTFP
 Assigns the specified double precision floating point number to this extended precision object.
 
IMPORT_C TInt Set (TInt aInt)
 Gives this extended precision object a new value taken from a signed integer.
 
IMPORT_C TInt Set (TUint aInt)
 Gives this extended precision object a new value taken from an unsigned integer.
 
IMPORT_C TInt Set (const TInt64 &aInt)
 Gives this extended precision object a new value taken from a 64 bit integer.
 
IMPORT_C TInt Set (TReal32 aReal) __SOFTFP
 Gives this extended precision object a new value taken from a single precision floating point number.
 
IMPORT_C TInt Set (TReal64 aReal) __SOFTFP
 Gives this extended precision object a new value taken from a double precision floating point number.
 
IMPORT_C operator TInt () const
 Gets the extended precision value as a signed integer value.
 
IMPORT_C operator TUint () const
 Returns the extended precision value as an unsigned signed integer value.
 
IMPORT_C operator TInt64 () const
 Returns the extended precision value as a 64 bit integer value.
 
IMPORT_C operator TReal32 () const __SOFTFP
 Returns the extended precision value as a single precision floating point value.
 
IMPORT_C operator TReal64 () const __SOFTFP
 Returns the extended precision value as a double precision floating point value.
 
IMPORT_C TInt GetTReal (TReal32 &aVal) const
 Extracts the extended precision value as a single precision floating point value.
 
IMPORT_C TInt GetTReal (TReal64 &aVal) const
 Extracts the extended precision value as a double precision floating point value.
 
IMPORT_C void SetZero (TBool aNegative=EFalse)
 Sets the value of this extended precision object to zero.
 
IMPORT_C void SetNaN ()
 Sets the value of this extended precision object to 'not a number'.
 
IMPORT_C void SetInfinite (TBool aNegative)
 Sets the value of this extended precision object to infinity.
 
IMPORT_C TBool IsZero () const
 Determines whether the extended precision value is zero.
 
IMPORT_C TBool IsNaN () const
 Determines whether the extended precision value is 'not a number'.
 
IMPORT_C TBool IsInfinite () const
 Determines whether the extended precision value has a finite value.
 
IMPORT_C TBool IsFinite () const
 Determines whether the extended precision value has a finite value.
 
IMPORT_C const TRealX & operator+= (const TRealX &aVal)
 Adds an extended precision value to this extended precision number.
 
IMPORT_C const TRealX & operator-= (const TRealX &aVal)
 Subtracts an extended precision value from this extended precision number.
 
IMPORT_C const TRealX & operator*= (const TRealX &aVal)
 Multiplies this extended precision number by an extended precision value.
 
IMPORT_C const TRealX & operator/= (const TRealX &aVal)
 Divides this extended precision number by an extended precision value.
 
IMPORT_C const TRealX & operator%= (const TRealX &aVal)
 Modulo-divides this extended precision number by an extended precision value.
 
IMPORT_C TInt AddEq (const TRealX &aVal)
 Adds an extended precision value to this extended precision number.
 
IMPORT_C TInt SubEq (const TRealX &aVal)
 Subtracts an extended precision value from this extended precision number.
 
IMPORT_C TInt MultEq (const TRealX &aVal)
 Multiplies this extended precision number by an extended precision value.
 
IMPORT_C TInt DivEq (const TRealX &aVal)
 Divides this extended precision number by an extended precision value.
 
IMPORT_C TInt ModEq (const TRealX &aVal)
 Modulo-divides this extended precision number by an extended precision value.
 
IMPORT_C TRealX operator+ () const
 Returns this extended precision number unchanged.
 
IMPORT_C TRealX operator- () const
 Negates this extended precision number.
 
IMPORT_C TRealX & operator++ ()
 Increments this extended precision number by one, and then returns a reference to it.
 
IMPORT_C TRealX operator++ (TInt)
 Returns this extended precision number before incrementing it by one.
 
IMPORT_C TRealX & operator-- ()
 Decrements this extended precision number by one, and then returns a reference to it.
 
IMPORT_C TRealX operator-- (TInt)
 Returns this extended precision number before decrementing it by one.
 
IMPORT_C TRealX operator+ (const TRealX &aVal) const
 Adds an extended precision value to this extended precision number.
 
IMPORT_C TRealX operator- (const TRealX &aVal) const
 Subtracts an extended precision value from this extended precision number.
 
IMPORT_C TRealX operator* (const TRealX &aVal) const
 Multiplies this extended precision number by an extended precision value.
 
IMPORT_C TRealX operator/ (const TRealX &aVal) const
 Divides this extended precision number by an extended precision value.
 
IMPORT_C TRealX operator% (const TRealX &aVal) const
 Modulo-divides this extended precision number by an extended precision value.
 
IMPORT_C TInt Add (TRealX &aResult, const TRealX &aVal) const
 Adds an extended precision value to this extended precision number.
 
IMPORT_C TInt Sub (TRealX &aResult, const TRealX &aVal) const
 Subtracts an extended precision value from this extended precision number.
 
IMPORT_C TInt Mult (TRealX &aResult, const TRealX &aVal) const
 Multiplies this extended precision number by an extended precision value.
 
IMPORT_C TInt Div (TRealX &aResult, const TRealX &aVal) const
 Divides this extended precision number by an extended precision value.
 
IMPORT_C TInt Mod (TRealX &aResult, const TRealX &aVal) const
 Modulo-divides this extended precision number by an extended precision value.
 
IMPORT_C TRealXOrder Compare (const TRealX &aVal) const
 
TBool operator== (const TRealX &aVal) const
 Compares this extended precision number for equality with another.
 
TBool operator!= (const TRealX &aVal) const
 Compares this extended precision number for in-equality with another.
 
TBool operator>= (const TRealX &aVal) const
 Compares this extended precision number for being greater than or equal to another.
 
TBool operator<= (const TRealX &aVal) const
 Compares this extended precision number for being less than or equal to another.
 
TBool operator> (const TRealX &aVal) const
 Compares this extended precision number for being greater than another.
 
TBool operator< (const TRealX &aVal) const
 Compares this extended precision number for being less than another.
 

Public Attributes

TUint32 iMantLo
 The mantissa.
 
TUint32 iMantHi
 
TInt8 iSign
 The sign: 0 for +, 1 for -.
 
TUint8 iFlag
 Flags: 0 for exact, 1 for rounded down, 2 for rounded up.
 
TUint16 iExp
 Exponent: biased by 32767, iExp=0 => zero, +65535 => infinity or NaN.
 

Detailed Description

A class encapsulating an extended precision real value.

This class provides 64 bit precision and a dynamic range of approximately 1E-9863 to 1E+9863. All member functions are optimized for speed.

API status
Published to all clients. Released API.

Definition at line 389 of file e32math.h.

Member Enumeration Documentation

◆ TRealXOrder

Enumerator
ELessThan 
EEqual 
EGreaterThan 
EUnordered 

Definition at line 403 of file e32math.h.

Constructor & Destructor Documentation

◆ TRealX() [1/7]

IMPORT_C TRealX::TRealX ( )

Constructs a default extended precision object.

This sets the value to zero.

(generated from Symbian Developer Library)

◆ TRealX() [2/7]

IMPORT_C TRealX::TRealX ( TInt  aInt)

Constructs an extended precision object from a signed integer value.

(generated from Symbian Developer Library)

◆ TRealX() [3/7]

IMPORT_C TRealX::TRealX ( TUint  aInt)

Constructs an extended precision object from an unsigned integer value.

(generated from Symbian Developer Library)

◆ TRealX() [4/7]

IMPORT_C TRealX::TRealX ( TUint  aExp,
TUint  aMantHi,
TUint  aMantLo 
)

Constructs an extended precision object from an explicit exponent and a 64 bit mantissa.

Parameters
aMantHiThe high order 32 bits of the 64 bit mantissa
aMantLoThe low order 32 bits of the 64 bit mantissa

(generated from Symbian Developer Library)

◆ TRealX() [5/7]

IMPORT_C TRealX::TRealX ( const TInt64 &  aInt)

Constructs an extended precision object from a 64 bit integer.

(generated from Symbian Developer Library)

◆ TRealX() [6/7]

IMPORT_C TRealX::TRealX ( TReal32  aReal)

Constructs an extended precision object from a single precision floating point number.

Parameters
aRealThe single precision floating point value.

(generated from Symbian Developer Library)

◆ TRealX() [7/7]

IMPORT_C TRealX::TRealX ( TReal64  aReal)

Constructs an extended precision object from a double precision floating point number.

Parameters
aRealThe double precision floating point value.

(generated from Symbian Developer Library)

Member Function Documentation

◆ Add()

IMPORT_C TInt TRealX::Add ( TRealX &  aResult,
const TRealX &  aVal 
) const

Adds an extended precision value to this extended precision number.

Parameters
aResultOn return, a reference to an extended precision object containing the result of the operation.
aValThe extended precision value to be added.

(generated from Symbian Developer Library)

◆ AddEq()

IMPORT_C TInt TRealX::AddEq ( const TRealX &  aVal)

Adds an extended precision value to this extended precision number.

Parameters
aValThe extended precision value to be added.

(generated from Symbian Developer Library)

◆ Compare()

IMPORT_C TRealXOrder TRealX::Compare ( const TRealX &  aVal) const

◆ Div()

IMPORT_C TInt TRealX::Div ( TRealX &  aResult,
const TRealX &  aVal 
) const

Divides this extended precision number by an extended precision value.

Parameters
aResultOn return, a reference to an extended precision object containing the result of the operation.
aValThe extended precision value to be used as the divisor.

(generated from Symbian Developer Library)

◆ DivEq()

IMPORT_C TInt TRealX::DivEq ( const TRealX &  aVal)

Divides this extended precision number by an extended precision value.

Parameters
aValThe extended precision value to be used as the divisor.

(generated from Symbian Developer Library)

◆ GetTReal() [1/2]

IMPORT_C TInt TRealX::GetTReal ( TReal32 &  aVal) const

Extracts the extended precision value as a single precision floating point value.

Parameters
aValA reference to a single precision object which contains the result of the operation.

(generated from Symbian Developer Library)

◆ GetTReal() [2/2]

IMPORT_C TInt TRealX::GetTReal ( TReal64 &  aVal) const

Extracts the extended precision value as a double precision floating point value.

Parameters
aValA reference to a double precision object which contains the result of the operation.

(generated from Symbian Developer Library)

◆ IsFinite()

IMPORT_C TBool TRealX::IsFinite ( ) const

Determines whether the extended precision value has a finite value.

(generated from Symbian Developer Library)

◆ IsInfinite()

IMPORT_C TBool TRealX::IsInfinite ( ) const

Determines whether the extended precision value has a finite value.

(generated from Symbian Developer Library)

◆ IsNaN()

IMPORT_C TBool TRealX::IsNaN ( ) const

Determines whether the extended precision value is 'not a number'.

(generated from Symbian Developer Library)

◆ IsZero()

IMPORT_C TBool TRealX::IsZero ( ) const

Determines whether the extended precision value is zero.

(generated from Symbian Developer Library)

◆ Mod()

IMPORT_C TInt TRealX::Mod ( TRealX &  aResult,
const TRealX &  aVal 
) const

Modulo-divides this extended precision number by an extended precision value.

Parameters
aResultOn return, a reference to an extended precision object containing the result of the operation.
aValThe extended precision value to be used as the divisor.

(generated from Symbian Developer Library)

◆ ModEq()

IMPORT_C TInt TRealX::ModEq ( const TRealX &  aVal)

Modulo-divides this extended precision number by an extended precision value.

Parameters
aValThe extended precision value to be used as the divisor.

(generated from Symbian Developer Library)

◆ Mult()

IMPORT_C TInt TRealX::Mult ( TRealX &  aResult,
const TRealX &  aVal 
) const

Multiplies this extended precision number by an extended precision value.

Parameters
aResultOn return, a reference to an extended precision object containing the result of the operation.
aValThe extended precision value to be used as the multiplier.

(generated from Symbian Developer Library)

◆ MultEq()

IMPORT_C TInt TRealX::MultEq ( const TRealX &  aVal)

Multiplies this extended precision number by an extended precision value.

Parameters
aValThe extended precision value to be used as the multiplier.

(generated from Symbian Developer Library)

◆ operator TInt()

IMPORT_C TRealX::operator TInt ( ) const

Gets the extended precision value as a signed integer value.

The operator returns:

  1. zero , if the extended precision value is not a number
  2. 0x7FFFFFFF, if the value is positive and too big to fit into a TInt.
  3. 0x80000000, if the value is negative and too big to fit into a TInt.

(generated from Symbian Developer Library)

◆ operator TInt64()

IMPORT_C TRealX::operator TInt64 ( ) const

Returns the extended precision value as a 64 bit integer value.

The operator returns:

  1. zero, if the extended precision value is not a number
  2. 0x7FFFFFFF FFFFFFFF, if the value is positive and too big to fit into a TInt64
  3. 0x80000000 00000000, if the value is negative and too big to fit into a TInt.

(generated from Symbian Developer Library)

◆ operator TReal32()

IMPORT_C TRealX::operator TReal32 ( ) const

Returns the extended precision value as a single precision floating point value.

(generated from Symbian Developer Library)

◆ operator TReal64()

IMPORT_C TRealX::operator TReal64 ( ) const

Returns the extended precision value as a double precision floating point value.

(generated from Symbian Developer Library)

◆ operator TUint()

IMPORT_C TRealX::operator TUint ( ) const

Returns the extended precision value as an unsigned signed integer value.

The operator returns:

  1. zero, if the extended precision value is not a number
  2. 0xFFFFFFFF, if the value is positive and too big to fit into a TUint.
  3. zero, if the value is negative and too big to fit into a TUint.

(generated from Symbian Developer Library)

◆ operator!=()

TBool TRealX::operator!= ( const TRealX &  aVal) const
inline

Compares this extended precision number for in-equality with another.

Parameters
aValA reference to the extended precision value to be compared.

(generated from Symbian Developer Library)

◆ operator%()

IMPORT_C TRealX TRealX::operator% ( const TRealX &  aVal) const

Modulo-divides this extended precision number by an extended precision value.

Parameters
aValThe extended precision value to be used as the divisor.

Panic condition: MATHX KErrTotalLossOfPrecision if precision is lost.

Panic condition: MATHX KErrUnderflow if the operation results in underflow.

(generated from Symbian Developer Library)

◆ operator%=()

IMPORT_C const TRealX & TRealX::operator%= ( const TRealX &  aVal)

Modulo-divides this extended precision number by an extended precision value.

Parameters
aValThe extended precision value to be used as the divisor.

Panic condition: MATHX KErrTotalLossOfPrecision panic if precision is lost.

Panic condition: MATHX KErrUnderflow if the operation results in underflow.

(generated from Symbian Developer Library)

◆ operator*()

IMPORT_C TRealX TRealX::operator* ( const TRealX &  aVal) const

Multiplies this extended precision number by an extended precision value.

Parameters
aValThe extended precision value to be used as the multiplier.

Panic condition: MATHX KErrOverflow if the operation results in overflow.

Panic condition: MATHX KErrUnderflow if the operation results in underflow.

(generated from Symbian Developer Library)

◆ operator*=()

IMPORT_C const TRealX & TRealX::operator*= ( const TRealX &  aVal)

Multiplies this extended precision number by an extended precision value.

Parameters
aValThe extended precision value to be subtracted.

Panic condition: MATHX KErrOverflow if the operation results in overflow.

Panic condition: MATHX KErrUnderflow if the operation results in underflow.

(generated from Symbian Developer Library)

◆ operator+() [1/2]

IMPORT_C TRealX TRealX::operator+ ( ) const

Returns this extended precision number unchanged.

Note that this may also be referred to as a unary plus operator.

(generated from Symbian Developer Library)

◆ operator+() [2/2]

IMPORT_C TRealX TRealX::operator+ ( const TRealX &  aVal) const

Adds an extended precision value to this extended precision number.

Parameters
aValThe extended precision value to be added.

Panic condition: MATHX KErrOverflow if the operation results in overflow.

Panic condition: MATHX KErrUnderflow if the operation results in underflow.

(generated from Symbian Developer Library)

◆ operator++() [1/2]

IMPORT_C TRealX & TRealX::operator++ ( )

Increments this extended precision number by one, and then returns a reference to it.

This is also referred to as a prefix operator.

Panic condition: MATHX KErrOverflow if the operation results in overflow.

Panic condition: MATHX KErrUnderflow if the operation results in underflow.

(generated from Symbian Developer Library)

◆ operator++() [2/2]

IMPORT_C TRealX TRealX::operator++ ( TInt  )

Returns this extended precision number before incrementing it by one.

This is also referred to as a postfix operator.

Panic condition: MATHX KErrOverflow if the operation results in overflow.

Panic condition: MATHX KErrUnderflow if the operation results in underflow.

(generated from Symbian Developer Library)

◆ operator+=()

IMPORT_C const TRealX & TRealX::operator+= ( const TRealX &  aVal)

Adds an extended precision value to this extended precision number.

Parameters
aValThe extended precision value to be added.

Panic condition: MATHX KErrOverflow if the operation results in overflow.

Panic condition: MATHX KErrUnderflow if the operation results in underflow.

(generated from Symbian Developer Library)

◆ operator-() [1/2]

IMPORT_C TRealX TRealX::operator- ( ) const

Negates this extended precision number.

This may also be referred to as a unary minus operator.

(generated from Symbian Developer Library)

◆ operator-() [2/2]

IMPORT_C TRealX TRealX::operator- ( const TRealX &  aVal) const

Subtracts an extended precision value from this extended precision number.

Parameters
aValThe extended precision value to be subtracted.

Panic condition: MATHX KErrOverflow if the operation results in overflow.

Panic condition: MATHX KErrUnderflow if the operation results in underflow.

(generated from Symbian Developer Library)

◆ operator--() [1/2]

IMPORT_C TRealX & TRealX::operator-- ( )

Decrements this extended precision number by one, and then returns a reference to it.

This is also referred to as a prefix operator.

Panic condition: MATHX KErrOverflow if the operation results in overflow.

Panic condition: MATHX KErrUnderflow if the operation results in underflow.

(generated from Symbian Developer Library)

◆ operator--() [2/2]

IMPORT_C TRealX TRealX::operator-- ( TInt  )

Returns this extended precision number before decrementing it by one.

This is also referred to as a postfix operator.

Panic condition: MATHX KErrOverflow if the operation results in overflow.

Panic condition: MATHX KErrUnderflow if the operation results in underflow.

(generated from Symbian Developer Library)

◆ operator-=()

IMPORT_C const TRealX & TRealX::operator-= ( const TRealX &  aVal)

Subtracts an extended precision value from this extended precision number.

Parameters
aValThe extended precision value to be subtracted.

Panic condition: MATHX KErrOverflow if the operation results in overflow.

Panic condition: MATHX KErrUnderflow if the operation results in underflow.

(generated from Symbian Developer Library)

◆ operator/()

IMPORT_C TRealX TRealX::operator/ ( const TRealX &  aVal) const

Divides this extended precision number by an extended precision value.

Parameters
aValThe extended precision value to be used as the divisor.

Panic condition: MATHX KErrOverflow if the operation results in overflow.

Panic condition: MATHX KErrUnderflow if the operation results in underflow.

Panic condition: MATHX KErrDivideByZero if the divisor is zero.

(generated from Symbian Developer Library)

◆ operator/=()

IMPORT_C const TRealX & TRealX::operator/= ( const TRealX &  aVal)

Divides this extended precision number by an extended precision value.

Parameters
aValThe extended precision value to be used as the divisor.

Panic condition: MATHX KErrOverflow if the operation results in overflow.

Panic condition: MATHX KErrUnderflow if the operation results in underflow.

Panic condition: MATHX KErrDivideByZero if the divisor is zero.

(generated from Symbian Developer Library)

◆ operator<()

TBool TRealX::operator< ( const TRealX &  aVal) const
inline

Compares this extended precision number for being less than another.

Parameters
aValA reference to the extended precision value to be compared.

(generated from Symbian Developer Library)

◆ operator<=()

TBool TRealX::operator<= ( const TRealX &  aVal) const
inline

Compares this extended precision number for being less than or equal to another.

Parameters
aValA reference to the extended precision value to be compared.

(generated from Symbian Developer Library)

◆ operator=() [1/5]

IMPORT_C TRealX & TRealX::operator= ( const TInt64 &  aInt)

Assigns the specified 64 bit integer value to this extended precision object.

(generated from Symbian Developer Library)

◆ operator=() [2/5]

IMPORT_C TRealX & TRealX::operator= ( TInt  aInt)

Assigns the specified signed integer value to this extended precision object.

(generated from Symbian Developer Library)

◆ operator=() [3/5]

IMPORT_C TRealX & TRealX::operator= ( TReal32  aReal)

Assigns the specified single precision floating point number to this extended precision object.

Parameters
aRealThe single precision floating point value.

(generated from Symbian Developer Library)

◆ operator=() [4/5]

IMPORT_C TRealX & TRealX::operator= ( TReal64  aReal)

Assigns the specified double precision floating point number to this extended precision object.

Parameters
aRealThe double precision floating point value.

(generated from Symbian Developer Library)

◆ operator=() [5/5]

IMPORT_C TRealX & TRealX::operator= ( TUint  aInt)

Assigns the specified unsigned integer value to this extended precision object.

(generated from Symbian Developer Library)

◆ operator==()

TBool TRealX::operator== ( const TRealX &  aVal) const
inline

Compares this extended precision number for equality with another.

Parameters
aValA reference to the extended precision value to be compared.

(generated from Symbian Developer Library)

◆ operator>()

TBool TRealX::operator> ( const TRealX &  aVal) const
inline

Compares this extended precision number for being greater than another.

Parameters
aValA reference to the extended precision value to be compared.

(generated from Symbian Developer Library)

◆ operator>=()

TBool TRealX::operator>= ( const TRealX &  aVal) const
inline

Compares this extended precision number for being greater than or equal to another.

Parameters
aValA reference to the extended precision value to be compared.

(generated from Symbian Developer Library)

◆ Set() [1/5]

IMPORT_C TInt TRealX::Set ( const TInt64 &  aInt)

Gives this extended precision object a new value taken from a 64 bit integer.

(generated from Symbian Developer Library)

◆ Set() [2/5]

IMPORT_C TInt TRealX::Set ( TInt  aInt)

Gives this extended precision object a new value taken from a signed integer.

(generated from Symbian Developer Library)

◆ Set() [3/5]

IMPORT_C TInt TRealX::Set ( TReal32  aReal)

Gives this extended precision object a new value taken from a single precision floating point number.

Parameters
aRealThe single precision floating point value.

(generated from Symbian Developer Library)

◆ Set() [4/5]

IMPORT_C TInt TRealX::Set ( TReal64  aReal)

Gives this extended precision object a new value taken from a double precision floating point number.

Parameters
aRealThe double precision floating point value.

(generated from Symbian Developer Library)

◆ Set() [5/5]

IMPORT_C TInt TRealX::Set ( TUint  aInt)

Gives this extended precision object a new value taken from an unsigned integer.

(generated from Symbian Developer Library)

◆ SetInfinite()

IMPORT_C void TRealX::SetInfinite ( TBool  aNegative)

Sets the value of this extended precision object to infinity.

Parameters
aNegativeETrue, the value is a negative zero; EFalse, the value is a positive zero.

(generated from Symbian Developer Library)

◆ SetNaN()

IMPORT_C void TRealX::SetNaN ( )

Sets the value of this extended precision object to 'not a number'.

(generated from Symbian Developer Library)

◆ SetZero()

IMPORT_C void TRealX::SetZero ( TBool  aNegative = EFalse)

Sets the value of this extended precision object to zero.

Parameters
aNegativeETrue, the value is a negative zero; EFalse, the value is a positive zero, this is the default.

(generated from Symbian Developer Library)

◆ Sub()

IMPORT_C TInt TRealX::Sub ( TRealX &  aResult,
const TRealX &  aVal 
) const

Subtracts an extended precision value from this extended precision number.

Parameters
aResultOn return, a reference to an extended precision object containing the result of the operation.
aValThe extended precision value to be subtracted.

(generated from Symbian Developer Library)

◆ SubEq()

IMPORT_C TInt TRealX::SubEq ( const TRealX &  aVal)

Subtracts an extended precision value from this extended precision number.

Parameters
aValThe extended precision value to be subtracted.

(generated from Symbian Developer Library)

Member Data Documentation

◆ iExp

TUint16 TRealX::iExp

Exponent: biased by 32767, iExp=0 => zero, +65535 => infinity or NaN.

Definition at line 494 of file e32math.h.

◆ iFlag

TUint8 TRealX::iFlag

Flags: 0 for exact, 1 for rounded down, 2 for rounded up.

Definition at line 489 of file e32math.h.

◆ iMantHi

TUint32 TRealX::iMantHi

Definition at line 479 of file e32math.h.

◆ iMantLo

TUint32 TRealX::iMantLo

The mantissa.

Definition at line 478 of file e32math.h.

◆ iSign

TInt8 TRealX::iSign

The sign: 0 for +, 1 for -.

Definition at line 484 of file e32math.h.


The documentation for this class was generated from the following files: