Lines Matching refs:value
39 EvaluatorQuantity::EvaluatorQuantity(double value, unsigned int dimension) :
40 value(value),
48 value.fl = 0;
66 * base-unit. This is also the unit of the returned value.
68 * Returns: An EvaluatorQuantity with a value given in the base unit along with
98 result.value /= default_unit_factor.value;
127 new_term.value /= default_unit_factor.value;
132 evaluated_terms.value /= default_unit_factor.value;
139 evaluated_terms.value += (subtract ? -new_term.value : new_term.value);
157 evaluated_exp_terms.value /= new_exp_term.value;
160 evaluated_exp_terms.value *= new_exp_term.value;
176 evaluated_signed_factors.value = pow(evaluated_signed_factors.value,
177 new_signed_factor.value);
178 evaluated_signed_factors.dimension *= new_signed_factor.value;
199 result.value = -result.value;
211 evaluated_factor.value = consumed_token.value.fl;
225 identifier = g_newa(char, consumed_token.value.size + 1);
227 strncpy(identifier, consumed_token.value.c, consumed_token.value.size);
228 identifier[consumed_token.value.size] = '\0';
231 evaluated_factor.value /= result.value;
276 // Attempt to parse a numeric value
278 gdouble value = g_strtod(s, &endptr);
282 current_token.value.fl = value;
288 current_token.value.c = s;
289 current_token.value.size = getIdentifierSize(s, 0);
291 acceptTokenCount(current_token.value.size, TOKEN_IDENTIFIER);
306 EvaluatorToken *value)
308 if (!acceptToken(token_type, value)) {
366 result->value = 1;
370 result->value = 1;
375 result->value = Quantity::convert(1, unit, identifier_unit);