Ongoing work to get Transformiix to build on Windows as a Mozilla component. Not part of the build.

- implemented rint() in NumberFunctionCall.cpp
- Changed String to DOMString in calls to processAttrValueTemplate() in XSLTProcessor.cpp
- Fixed up more windows makefiles.


git-svn-id: svn://10.0.0.236/trunk@66652 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nisheeth%netscape.com
2000-04-21 02:20:28 +00:00
parent 3497fd0d1a
commit ec7530ecda
5 changed files with 80 additions and 15 deletions

View File

@@ -60,6 +60,17 @@ NumberFunctionCall::NumberFunctionCall(short type) : FunctionCall() {
}
} //-- NumberFunctionCall
static double rint(double r)
{
double integerPart = 0;
double fraction = 0;
fraction = modf(r, &integerPart);
if (fraction >= 0.5)
integerPart++;
return integerPart;
}
/**
* Evaluates this Expr based on the given context node and processor state
* @param context the context node for evaluation of this Expr