You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by pe...@apache.org on 2001/08/08 20:33:44 UTC
cvs commit: xml-xerces/c/src/util XMLBigDecimal.hpp XMLBigDecimal.cpp
peiyongz 01/08/08 11:33:44
Modified: c/src/util XMLBigDecimal.hpp XMLBigDecimal.cpp
Log:
fix: unresolved symbol warning for 'pow'.
Revision Changes Path
1.7 +1 -3 xml-xerces/c/src/util/XMLBigDecimal.hpp
Index: XMLBigDecimal.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/util/XMLBigDecimal.hpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- XMLBigDecimal.hpp 2001/07/25 19:07:42 1.6
+++ XMLBigDecimal.hpp 2001/08/08 18:33:44 1.7
@@ -55,7 +55,7 @@
*/
/*
- * $Id: XMLBigDecimal.hpp,v 1.6 2001/07/25 19:07:42 peiyongz Exp $
+ * $Id: XMLBigDecimal.hpp,v 1.7 2001/08/08 18:33:44 peiyongz Exp $
*/
#ifndef XML_BIGDECIMAL_HPP
@@ -115,8 +115,6 @@
unsigned int getScale() const;
unsigned int getTotalDigit() const;
-
- double doubleValue() const;
/**
* Return string representation of the decimal value.
1.8 +4 -5 xml-xerces/c/src/util/XMLBigDecimal.cpp
Index: XMLBigDecimal.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/util/XMLBigDecimal.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- XMLBigDecimal.cpp 2001/07/25 19:07:42 1.7
+++ XMLBigDecimal.cpp 2001/08/08 18:33:44 1.8
@@ -56,6 +56,9 @@
/*
* $Log: XMLBigDecimal.cpp,v $
+ * Revision 1.8 2001/08/08 18:33:44 peiyongz
+ * fix: unresolved symbol warning for 'pow'.
+ *
* Revision 1.7 2001/07/25 19:07:42 peiyongz
* Fix to AIX compilation error: The function abs must have a prototype.
*
@@ -89,7 +92,6 @@
#include <util/NumberFormatException.hpp>
#include <util/TransService.hpp>
#include <util/Janitor.hpp>
-#include <math.h>
/**
* Constructs a BigDecimal from a string containing an optional (plus | minus)
@@ -367,7 +369,4 @@
//
//
//
-double XMLBigDecimal::doubleValue() const
-{
- return (double)(fIntVal->intValue()) * (double) pow(10.0, (double) getScale() * -1);
-}
+
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org