2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-11-16 17:45:09 +00:00
qpdf/libqpdf/QPDF_Real.cc

30 lines
386 B
C++
Raw Normal View History

#include <qpdf/QPDF_Real.hh>
2012-06-27 03:34:15 +00:00
#include <qpdf/QUtil.hh>
QPDF_Real::QPDF_Real(std::string const& val) :
val(val)
{
}
2012-06-27 03:34:15 +00:00
QPDF_Real::QPDF_Real(double value, int decimal_places) :
val(QUtil::double_to_string(value, decimal_places))
{
}
QPDF_Real::~QPDF_Real()
{
}
std::string
QPDF_Real::unparse()
{
return this->val;
}
std::string
QPDF_Real::getVal()
{
return this->val;
}