toDouble()

Convert the attribute value to a double (n encoding).

Synopsis:

#include <qpps/variant.h>
 
int toDouble( bool *ok = 0 ) const;

Arguments:

ok
A reference to a bool for storing the conversion status. When the reference is non-NULL, the status is set to false if a conversion error occurs; otherwise, it's set to true.

Description:

Convert the attribute value to a double (n encoding).

Returns:

A double containing the attribute's value.