Lines Matching refs:value
97 // Add the decimal representation of the value.
98 void AddDecimalInteger(int value) {
99 uint32_t number = static_cast<uint32_t>(value);
100 if (value < 0) {
102 number = static_cast<uint32_t>(-value);
576 // the mathematical integer value" (15.1.2.2).
582 // NOTE: The code for computing the value may seem a bit complex at
605 // Update the value of the part as long as the multiplier fits
631 // Converts a string to a double value. Assumes the Iterator supports
710 // It could be hexadecimal value.
720 // It could be an explicit octal value.
730 // It could be a binary value.
1127 char* DoubleToFixedCString(double value, int f) {
1134 double abs_value = value;
1135 if (value < 0) {
1136 abs_value = -value;
1145 return StrDup(DoubleToCString(value, buffer));
1156 base::DoubleToAscii(value, base::DTOA_FIXED, f,
1227 char* DoubleToExponentialCString(double value, int f) {
1232 if (value < 0) {
1233 value = -value;
1251 base::DoubleToAscii(value, base::DTOA_SHORTEST, 0,
1256 base::DoubleToAscii(value, base::DTOA_PRECISION, f + 1,
1270 char* DoubleToPrecisionCString(double value, int p) {
1276 if (value < 0) {
1277 value = -value;
1289 base::DoubleToAscii(value, base::DTOA_PRECISION, p,
1339 char* DoubleToRadixCString(double value, int radix) {
1341 DCHECK(std::isfinite(value));
1342 DCHECK_NE(0.0, value);
1356 bool negative = value < 0;
1357 if (negative) value = -value;
1359 // Split the value into an integer part and a fractional part.
1360 double integer = std::floor(value);
1361 double fraction = value - integer;
1363 double delta = 0.5 * (base::Double(value).NextDouble() - value);
1420 // Allocate new string as return value.