Project

General

Profile

Actions

Bug #41156

closed

dump_float() poor output

Added by David Zafman over 4 years ago. Updated over 4 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
David Zafman
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

dump_float("15min", 810 / 1000.0) outputs "15min": 0.8100000000000001

This was introduced in https://github.com/ceph/ceph/pull/25745 which has 1 commit and no tracker.

While using a template to create the add_value() functions the issue is caused by m_ss.precision(std::numeric_limits<T>::max_digits10);


Related issues 1 (1 open0 closed)

Related to RADOS - Bug #41754: Use dump_stream() instead of dump_float() for floats where max precision isn't helpfulNewDavid Zafman09/10/2019

Actions
Actions

Also available in: Atom PDF