Lines Matching refs:floatval
1036 switch (xmlXPathIsInf(cur->floatval)) {
1044 if (xmlXPathIsNaN(cur->floatval)) {
1046 } else if (cur->floatval == 0 && xmlXPathGetSign(cur->floatval) != 0) {
1049 fprintf(output, "Object is a number : %0g\n", cur->floatval);
2239 ret->floatval = val;
2253 ret->floatval = val;
2298 res = xmlXPathCastNumberToString(val->floatval);
2339 return(xmlXPathCacheNewFloat(ctxt, val->floatval));
2548 ret = obj->floatval;
5137 ret->floatval = val;
5688 ret = xmlXPathCastNumberToString(val->floatval);
5734 res = xmlXPathCastNumberToString(val->floatval);
5851 ret = val->floatval;
5963 ret = xmlXPathCastNumberToBoolean(val->floatval);
6711 v = val->floatval;
6883 xmlXPathCastNumberToBoolean(arg2->floatval));
6913 xmlXPathCastNumberToBoolean(arg1->floatval));
6922 if (xmlXPathIsNaN(arg1->floatval) ||
6923 xmlXPathIsNaN(arg2->floatval)) {
6925 } else if (xmlXPathIsInf(arg1->floatval) == 1) {
6926 if (xmlXPathIsInf(arg2->floatval) == 1)
6930 } else if (xmlXPathIsInf(arg1->floatval) == -1) {
6931 if (xmlXPathIsInf(arg2->floatval) == -1)
6935 } else if (xmlXPathIsInf(arg2->floatval) == 1) {
6936 if (xmlXPathIsInf(arg1->floatval) == 1)
6940 } else if (xmlXPathIsInf(arg2->floatval) == -1) {
6941 if (xmlXPathIsInf(arg1->floatval) == -1)
6946 ret = (arg1->floatval == arg2->floatval);
6983 if (xmlXPathIsNaN(arg1->floatval) ||
6984 xmlXPathIsNaN(arg2->floatval)) {
6986 } else if (xmlXPathIsInf(arg1->floatval) == 1) {
6987 if (xmlXPathIsInf(arg2->floatval) == 1)
6991 } else if (xmlXPathIsInf(arg1->floatval) == -1) {
6992 if (xmlXPathIsInf(arg2->floatval) == -1)
6996 } else if (xmlXPathIsInf(arg2->floatval) == 1) {
6997 if (xmlXPathIsInf(arg1->floatval) == 1)
7001 } else if (xmlXPathIsInf(arg2->floatval) == -1) {
7002 if (xmlXPathIsInf(arg1->floatval) == -1)
7007 ret = (arg1->floatval == arg2->floatval);
7101 ret = xmlXPathEqualNodeSetFloat(ctxt, arg1, arg2->floatval, 0);
7186 ret = xmlXPathEqualNodeSetFloat(ctxt, arg1, arg2->floatval, 1);
7293 if (xmlXPathIsNaN(arg1->floatval) || xmlXPathIsNaN(arg2->floatval)) {
7296 arg1i=xmlXPathIsInf(arg1->floatval);
7297 arg2i=xmlXPathIsInf(arg2->floatval);
7303 ret = (arg1->floatval < arg2->floatval);
7312 ret = (arg1->floatval <= arg2->floatval);
7322 ret = (arg1->floatval > arg2->floatval);
7331 ret = (arg1->floatval >= arg2->floatval);
7355 if (xmlXPathIsNaN(ctxt->value->floatval))
7356 ctxt->value->floatval=xmlXPathNAN;
7357 else if (xmlXPathIsInf(ctxt->value->floatval) == 1)
7358 ctxt->value->floatval=xmlXPathNINF;
7359 else if (xmlXPathIsInf(ctxt->value->floatval) == -1)
7360 ctxt->value->floatval=xmlXPathPINF;
7361 else if (ctxt->value->floatval == 0) {
7362 if (xmlXPathGetSign(ctxt->value->floatval) == 0)
7363 ctxt->value->floatval = xmlXPathNZERO;
7365 ctxt->value->floatval = 0;
7368 ctxt->value->floatval = - ctxt->value->floatval;
7391 ctxt->value->floatval += val;
7414 ctxt->value->floatval -= val;
7437 ctxt->value->floatval *= val;
7460 if (xmlXPathIsNaN(val) || xmlXPathIsNaN(ctxt->value->floatval))
7461 ctxt->value->floatval = xmlXPathNAN;
7463 if (ctxt->value->floatval == 0)
7464 ctxt->value->floatval = xmlXPathNAN;
7465 else if (ctxt->value->floatval > 0)
7466 ctxt->value->floatval = xmlXPathNINF;
7467 else if (ctxt->value->floatval < 0)
7468 ctxt->value->floatval = xmlXPathPINF;
7471 if (ctxt->value->floatval == 0)
7472 ctxt->value->floatval = xmlXPathNAN;
7473 else if (ctxt->value->floatval > 0)
7474 ctxt->value->floatval = xmlXPathPINF;
7475 else if (ctxt->value->floatval < 0)
7476 ctxt->value->floatval = xmlXPathNINF;
7478 ctxt->value->floatval /= val;
7501 arg1 = ctxt->value->floatval;
7503 ctxt->value->floatval = xmlXPathNAN;
7505 ctxt->value->floatval = fmod(arg1, arg2);
9030 le = len->floatval;
9037 in = start->floatval;
9556 XTRUNC(f, ctxt->value->floatval);
9557 if (f != ctxt->value->floatval) {
9558 if (ctxt->value->floatval > 0)
9559 ctxt->value->floatval = f;
9561 ctxt->value->floatval = f - 1;
9584 ctxt->value->floatval = ceil(ctxt->value->floatval);
9586 XTRUNC(f, ctxt->value->floatval);
9587 if (f != ctxt->value->floatval) {
9588 if (ctxt->value->floatval > 0)
9589 ctxt->value->floatval = f + 1;
9591 if (ctxt->value->floatval < 0 && f == 0)
9592 ctxt->value->floatval = xmlXPathNZERO;
9594 ctxt->value->floatval = f;
9620 if ((xmlXPathIsNaN(ctxt->value->floatval)) ||
9621 (xmlXPathIsInf(ctxt->value->floatval) == 1) ||
9622 (xmlXPathIsInf(ctxt->value->floatval) == -1) ||
9623 (ctxt->value->floatval == 0.0))
9626 XTRUNC(f, ctxt->value->floatval);
9627 if (ctxt->value->floatval < 0) {
9628 if (ctxt->value->floatval < f - 0.5)
9629 ctxt->value->floatval = f - 1;
9631 ctxt->value->floatval = f;
9632 if (ctxt->value->floatval == 0)
9633 ctxt->value->floatval = xmlXPathNZERO;
9635 if (ctxt->value->floatval < f + 0.5)
9636 ctxt->value->floatval = f;
9638 ctxt->value->floatval = f + 1;
11918 *maxPos = (int) ((xmlXPathObjectPtr) exprOp->value4)->floatval;
11920 if (((xmlXPathObjectPtr) exprOp->value4)->floatval ==
13506 (val->floatval == 1.0)) {
14435 return(res->floatval == ctxt->proximityPosition);
14475 return((res->floatval == ctxt->context->proximityPosition) &&
14476 (!xmlXPathIsNaN(res->floatval))); /* MSC pbm Mark Vakoc !*/
14478 return(res->floatval == ctxt->context->proximityPosition);