Lines Matching refs:floatval
1035 switch (xmlXPathIsInf(cur->floatval)) {
1043 if (xmlXPathIsNaN(cur->floatval)) {
1045 } else if (cur->floatval == 0 && xmlXPathGetSign(cur->floatval) != 0) {
1048 fprintf(output, "Object is a number : %0g\n", cur->floatval);
2238 ret->floatval = val;
2252 ret->floatval = val;
2297 res = xmlXPathCastNumberToString(val->floatval);
2338 return(xmlXPathCacheNewFloat(ctxt, val->floatval));
2504 ret = obj->floatval;
5110 ret->floatval = val;
5661 ret = xmlXPathCastNumberToString(val->floatval);
5707 res = xmlXPathCastNumberToString(val->floatval);
5824 ret = val->floatval;
5936 ret = xmlXPathCastNumberToBoolean(val->floatval);
6683 v = val->floatval;
6855 xmlXPathCastNumberToBoolean(arg2->floatval));
6885 xmlXPathCastNumberToBoolean(arg1->floatval));
6894 if (xmlXPathIsNaN(arg1->floatval) ||
6895 xmlXPathIsNaN(arg2->floatval)) {
6897 } else if (xmlXPathIsInf(arg1->floatval) == 1) {
6898 if (xmlXPathIsInf(arg2->floatval) == 1)
6902 } else if (xmlXPathIsInf(arg1->floatval) == -1) {
6903 if (xmlXPathIsInf(arg2->floatval) == -1)
6907 } else if (xmlXPathIsInf(arg2->floatval) == 1) {
6908 if (xmlXPathIsInf(arg1->floatval) == 1)
6912 } else if (xmlXPathIsInf(arg2->floatval) == -1) {
6913 if (xmlXPathIsInf(arg1->floatval) == -1)
6918 ret = (arg1->floatval == arg2->floatval);
6955 if (xmlXPathIsNaN(arg1->floatval) ||
6956 xmlXPathIsNaN(arg2->floatval)) {
6958 } else if (xmlXPathIsInf(arg1->floatval) == 1) {
6959 if (xmlXPathIsInf(arg2->floatval) == 1)
6963 } else if (xmlXPathIsInf(arg1->floatval) == -1) {
6964 if (xmlXPathIsInf(arg2->floatval) == -1)
6968 } else if (xmlXPathIsInf(arg2->floatval) == 1) {
6969 if (xmlXPathIsInf(arg1->floatval) == 1)
6973 } else if (xmlXPathIsInf(arg2->floatval) == -1) {
6974 if (xmlXPathIsInf(arg1->floatval) == -1)
6979 ret = (arg1->floatval == arg2->floatval);
7073 ret = xmlXPathEqualNodeSetFloat(ctxt, arg1, arg2->floatval, 0);
7158 ret = xmlXPathEqualNodeSetFloat(ctxt, arg1, arg2->floatval, 1);
7265 if (xmlXPathIsNaN(arg1->floatval) || xmlXPathIsNaN(arg2->floatval)) {
7268 arg1i=xmlXPathIsInf(arg1->floatval);
7269 arg2i=xmlXPathIsInf(arg2->floatval);
7275 ret = (arg1->floatval < arg2->floatval);
7284 ret = (arg1->floatval <= arg2->floatval);
7294 ret = (arg1->floatval > arg2->floatval);
7303 ret = (arg1->floatval >= arg2->floatval);
7327 if (xmlXPathIsNaN(ctxt->value->floatval))
7328 ctxt->value->floatval=xmlXPathNAN;
7329 else if (xmlXPathIsInf(ctxt->value->floatval) == 1)
7330 ctxt->value->floatval=xmlXPathNINF;
7331 else if (xmlXPathIsInf(ctxt->value->floatval) == -1)
7332 ctxt->value->floatval=xmlXPathPINF;
7333 else if (ctxt->value->floatval == 0) {
7334 if (xmlXPathGetSign(ctxt->value->floatval) == 0)
7335 ctxt->value->floatval = xmlXPathNZERO;
7337 ctxt->value->floatval = 0;
7340 ctxt->value->floatval = - ctxt->value->floatval;
7363 ctxt->value->floatval += val;
7386 ctxt->value->floatval -= val;
7409 ctxt->value->floatval *= val;
7432 if (xmlXPathIsNaN(val) || xmlXPathIsNaN(ctxt->value->floatval))
7433 ctxt->value->floatval = xmlXPathNAN;
7435 if (ctxt->value->floatval == 0)
7436 ctxt->value->floatval = xmlXPathNAN;
7437 else if (ctxt->value->floatval > 0)
7438 ctxt->value->floatval = xmlXPathNINF;
7439 else if (ctxt->value->floatval < 0)
7440 ctxt->value->floatval = xmlXPathPINF;
7443 if (ctxt->value->floatval == 0)
7444 ctxt->value->floatval = xmlXPathNAN;
7445 else if (ctxt->value->floatval > 0)
7446 ctxt->value->floatval = xmlXPathPINF;
7447 else if (ctxt->value->floatval < 0)
7448 ctxt->value->floatval = xmlXPathNINF;
7450 ctxt->value->floatval /= val;
7473 arg1 = ctxt->value->floatval;
7475 ctxt->value->floatval = xmlXPathNAN;
7477 ctxt->value->floatval = fmod(arg1, arg2);
8996 le = len->floatval;
9003 in = start->floatval;
9520 XTRUNC(f, ctxt->value->floatval);
9521 if (f != ctxt->value->floatval) {
9522 if (ctxt->value->floatval > 0)
9523 ctxt->value->floatval = f;
9525 ctxt->value->floatval = f - 1;
9548 ctxt->value->floatval = ceil(ctxt->value->floatval);
9550 XTRUNC(f, ctxt->value->floatval);
9551 if (f != ctxt->value->floatval) {
9552 if (ctxt->value->floatval > 0)
9553 ctxt->value->floatval = f + 1;
9555 if (ctxt->value->floatval < 0 && f == 0)
9556 ctxt->value->floatval = xmlXPathNZERO;
9558 ctxt->value->floatval = f;
9584 if ((xmlXPathIsNaN(ctxt->value->floatval)) ||
9585 (xmlXPathIsInf(ctxt->value->floatval) == 1) ||
9586 (xmlXPathIsInf(ctxt->value->floatval) == -1) ||
9587 (ctxt->value->floatval == 0.0))
9590 XTRUNC(f, ctxt->value->floatval);
9591 if (ctxt->value->floatval < 0) {
9592 if (ctxt->value->floatval < f - 0.5)
9593 ctxt->value->floatval = f - 1;
9595 ctxt->value->floatval = f;
9596 if (ctxt->value->floatval == 0)
9597 ctxt->value->floatval = xmlXPathNZERO;
9599 if (ctxt->value->floatval < f + 0.5)
9600 ctxt->value->floatval = f;
9602 ctxt->value->floatval = f + 1;
11876 *maxPos = (int) ((xmlXPathObjectPtr) exprOp->value4)->floatval;
11878 if (((xmlXPathObjectPtr) exprOp->value4)->floatval ==
13458 (val->floatval == 1.0)) {
14385 return(res->floatval == ctxt->proximityPosition);
14425 return((res->floatval == ctxt->context->proximityPosition) &&
14426 (!xmlXPathIsNaN(res->floatval))); /* MSC pbm Mark Vakoc !*/
14428 return(res->floatval == ctxt->context->proximityPosition);