24 #include <VCardFloatValue.h>
26 #include <VCardValue.h>
28 using namespace VCARD;
30 FloatValue::FloatValue()
35 FloatValue::FloatValue(
float f)
42 FloatValue::FloatValue(
const FloatValue & x)
48 FloatValue::FloatValue(
const TQCString & s)
54 FloatValue::operator = (FloatValue & x)
56 if (*
this == x)
return *
this;
61 Value::operator = (x);
66 FloatValue::operator = (
const TQCString & s)
68 Value::operator = (s);
73 FloatValue::operator == (FloatValue & x)
76 return (value_ == x.value_);
79 FloatValue::~FloatValue()
88 if (strRep_[0] ==
'-' || strRep_[1] ==
'+') {
90 if (strRep_[0] ==
'-')
96 value_ = strRep_.toFloat();
102 FloatValue::_assemble()
104 strRep_ = TQCString().setNum(value_);
115 FloatValue::setValue(
float f)