felipecrv commented on code in PR #44906:
URL: https://github.com/apache/arrow/pull/44906#discussion_r1874532458
##########
cpp/src/arrow/util/string_builder.h:
##########
@@ -46,7 +47,12 @@ class ARROW_EXPORT StringStreamWrapper {
template <typename Head>
void StringBuilderRecursive(std::ostream& stream, Head&& head) {
- stream << head;
+ if constexpr (std::is_floating_point_v<std::decay_t<Head>>) {
+ // Avoid losing precision when printing floating point numbers
+ stream << std::to_string(head);
Review Comment:
Could this be considered an user-facing change?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]