Lines Matching defs:value
183 Compute the (normalized) diyfp representing the input number 'value' and its
186 @pre value must be finite and positive
189 boundaries compute_boundaries(FloatType value)
191 JSON_ASSERT(std::isfinite(value));
192 JSON_ASSERT(value > 0);
197 // value = 0.F * 2^(1 - bias) = ( F) * 2^(1 - bias - (p-1))
199 // value = 1.F * 2^(E - bias) = (2^(p-1) + F) * 2^(E - bias - (p-1))
211 const auto bits = static_cast<std::uint64_t>(reinterpret_bits<bits_type>(value));
220 // Compute the boundaries m- and m+ of the floating-point value
888 void grisu2(char* buf, int& len, int& decimal_exponent, FloatType value)
893 JSON_ASSERT(std::isfinite(value));
894 JSON_ASSERT(value > 0);
896 // If the neighbors (and boundaries) of 'value' are always computed for double-precision
901 // says "value is converted to a string as if by std::sprintf in the default ("C") locale"
905 // representation using the corresponding std::from_chars function recovers value exactly". That
911 // value is off by 1 ulp.
913 const boundaries w = compute_boundaries(static_cast<double>(value));
915 const boundaries w = compute_boundaries(value);
1053 @brief generates a decimal representation of the floating-point number value in [first, last).
1065 char* to_chars(char* first, const char* last, FloatType value)
1068 JSON_ASSERT(std::isfinite(value));
1070 // Use signbit(value) instead of (value < 0) since signbit works for -0.
1071 if (std::signbit(value))
1073 value = -value;
1081 if (value == 0) // +-0
1101 dtoa_impl::grisu2(first, len, decimal_exponent, value);
1105 // Format the buffer like printf("%.*g", prec, value)