Lines Matching refs:floatval
1034 switch (xmlXPathIsInf(cur->floatval)) {
1042 if (xmlXPathIsNaN(cur->floatval)) {
1044 } else if (cur->floatval == 0 && xmlXPathGetSign(cur->floatval) != 0) {
1047 fprintf(output, "Object is a number : %0g\n", cur->floatval);
2237 ret->floatval = val;
2251 ret->floatval = val;
2296 res = xmlXPathCastNumberToString(val->floatval);
2337 return(xmlXPathCacheNewFloat(ctxt, val->floatval));
2503 ret = obj->floatval;
5078 ret->floatval = val;
5626 ret = xmlXPathCastNumberToString(val->floatval);
5672 res = xmlXPathCastNumberToString(val->floatval);
5789 ret = val->floatval;
5901 ret = xmlXPathCastNumberToBoolean(val->floatval);
6648 v = val->floatval;
6820 xmlXPathCastNumberToBoolean(arg2->floatval));
6850 xmlXPathCastNumberToBoolean(arg1->floatval));
6859 if (xmlXPathIsNaN(arg1->floatval) ||
6860 xmlXPathIsNaN(arg2->floatval)) {
6862 } else if (xmlXPathIsInf(arg1->floatval) == 1) {
6863 if (xmlXPathIsInf(arg2->floatval) == 1)
6867 } else if (xmlXPathIsInf(arg1->floatval) == -1) {
6868 if (xmlXPathIsInf(arg2->floatval) == -1)
6872 } else if (xmlXPathIsInf(arg2->floatval) == 1) {
6873 if (xmlXPathIsInf(arg1->floatval) == 1)
6877 } else if (xmlXPathIsInf(arg2->floatval) == -1) {
6878 if (xmlXPathIsInf(arg1->floatval) == -1)
6883 ret = (arg1->floatval == arg2->floatval);
6920 if (xmlXPathIsNaN(arg1->floatval) ||
6921 xmlXPathIsNaN(arg2->floatval)) {
6923 } else if (xmlXPathIsInf(arg1->floatval) == 1) {
6924 if (xmlXPathIsInf(arg2->floatval) == 1)
6928 } else if (xmlXPathIsInf(arg1->floatval) == -1) {
6929 if (xmlXPathIsInf(arg2->floatval) == -1)
6933 } else if (xmlXPathIsInf(arg2->floatval) == 1) {
6934 if (xmlXPathIsInf(arg1->floatval) == 1)
6938 } else if (xmlXPathIsInf(arg2->floatval) == -1) {
6939 if (xmlXPathIsInf(arg1->floatval) == -1)
6944 ret = (arg1->floatval == arg2->floatval);
7038 ret = xmlXPathEqualNodeSetFloat(ctxt, arg1, arg2->floatval, 0);
7123 ret = xmlXPathEqualNodeSetFloat(ctxt, arg1, arg2->floatval, 1);
7230 if (xmlXPathIsNaN(arg1->floatval) || xmlXPathIsNaN(arg2->floatval)) {
7233 arg1i=xmlXPathIsInf(arg1->floatval);
7234 arg2i=xmlXPathIsInf(arg2->floatval);
7240 ret = (arg1->floatval < arg2->floatval);
7249 ret = (arg1->floatval <= arg2->floatval);
7259 ret = (arg1->floatval > arg2->floatval);
7268 ret = (arg1->floatval >= arg2->floatval);
7292 if (xmlXPathIsNaN(ctxt->value->floatval))
7293 ctxt->value->floatval=xmlXPathNAN;
7294 else if (xmlXPathIsInf(ctxt->value->floatval) == 1)
7295 ctxt->value->floatval=xmlXPathNINF;
7296 else if (xmlXPathIsInf(ctxt->value->floatval) == -1)
7297 ctxt->value->floatval=xmlXPathPINF;
7298 else if (ctxt->value->floatval == 0) {
7299 if (xmlXPathGetSign(ctxt->value->floatval) == 0)
7300 ctxt->value->floatval = xmlXPathNZERO;
7302 ctxt->value->floatval = 0;
7305 ctxt->value->floatval = - ctxt->value->floatval;
7328 ctxt->value->floatval += val;
7351 ctxt->value->floatval -= val;
7374 ctxt->value->floatval *= val;
7397 if (xmlXPathIsNaN(val) || xmlXPathIsNaN(ctxt->value->floatval))
7398 ctxt->value->floatval = xmlXPathNAN;
7400 if (ctxt->value->floatval == 0)
7401 ctxt->value->floatval = xmlXPathNAN;
7402 else if (ctxt->value->floatval > 0)
7403 ctxt->value->floatval = xmlXPathNINF;
7404 else if (ctxt->value->floatval < 0)
7405 ctxt->value->floatval = xmlXPathPINF;
7408 if (ctxt->value->floatval == 0)
7409 ctxt->value->floatval = xmlXPathNAN;
7410 else if (ctxt->value->floatval > 0)
7411 ctxt->value->floatval = xmlXPathPINF;
7412 else if (ctxt->value->floatval < 0)
7413 ctxt->value->floatval = xmlXPathNINF;
7415 ctxt->value->floatval /= val;
7438 arg1 = ctxt->value->floatval;
7440 ctxt->value->floatval = xmlXPathNAN;
7442 ctxt->value->floatval = fmod(arg1, arg2);
8954 le = len->floatval;
8961 in = start->floatval;
9478 XTRUNC(f, ctxt->value->floatval);
9479 if (f != ctxt->value->floatval) {
9480 if (ctxt->value->floatval > 0)
9481 ctxt->value->floatval = f;
9483 ctxt->value->floatval = f - 1;
9506 ctxt->value->floatval = ceil(ctxt->value->floatval);
9508 XTRUNC(f, ctxt->value->floatval);
9509 if (f != ctxt->value->floatval) {
9510 if (ctxt->value->floatval > 0)
9511 ctxt->value->floatval = f + 1;
9513 if (ctxt->value->floatval < 0 && f == 0)
9514 ctxt->value->floatval = xmlXPathNZERO;
9516 ctxt->value->floatval = f;
9542 if ((xmlXPathIsNaN(ctxt->value->floatval)) ||
9543 (xmlXPathIsInf(ctxt->value->floatval) == 1) ||
9544 (xmlXPathIsInf(ctxt->value->floatval) == -1) ||
9545 (ctxt->value->floatval == 0.0))
9548 XTRUNC(f, ctxt->value->floatval);
9549 if (ctxt->value->floatval < 0) {
9550 if (ctxt->value->floatval < f - 0.5)
9551 ctxt->value->floatval = f - 1;
9553 ctxt->value->floatval = f;
9554 if (ctxt->value->floatval == 0)
9555 ctxt->value->floatval = xmlXPathNZERO;
9557 if (ctxt->value->floatval < f + 0.5)
9558 ctxt->value->floatval = f;
9560 ctxt->value->floatval = f + 1;
11825 *maxPos = (int) ((xmlXPathObjectPtr) exprOp->value4)->floatval;
11827 if (((xmlXPathObjectPtr) exprOp->value4)->floatval ==
13394 (val->floatval == 1.0)) {
14321 return(res->floatval == ctxt->proximityPosition);
14361 return((res->floatval == ctxt->context->proximityPosition) &&
14362 (!xmlXPathIsNaN(res->floatval))); /* MSC pbm Mark Vakoc !*/
14364 return(res->floatval == ctxt->context->proximityPosition);