# Class LogProb
Value type for computation in log-space.

Defined in | <seqan/basic.h>
Signature | `template <[typename T]> class LogProb;`

## Template Parameters

`T` | Floating number type to use as the basic, defaults to `double`.

## Detailed Description

### Remarks

Internally, the logarithms of the original values are stored. This is numerically more stable for multiplications and large numbers.

This type can be used like an ordinary `double` or `float` value.

### Examples

    LogProb<double> x = 10;
    x *= 3;
    x += 4;
    int y = x;

#### Dox Sources

    /*!
     * @class LogProb
     *
     * @headerfile <seqan/basic.h>
     *
     * @brief Value type for computation in log-space.
     *
     * @signature template <[typename T]> class LogProb;
     *
     * @tparam T Floating number type to use as the basic, defaults to
     *           <tt>double</tt>.
     *
     * @section Remarks
     *
     * Internally, the logarithms of the original values are stored. This is
     * numerically more stable for multiplications and large numbers.
     *
     * This type can be used like an ordinary <tt>double</tt> or <tt>float</tt>
     * value.
     *
     * @section Examples
     *
     * @code{.cpp}
     * LogProb<double> x = 10;
     * x *= 3;
     * x += 4;
     * int y = x;
     * @endcode
     */