Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.
This repository was archived by the owner on May 31, 2025. It is now read-only.

XmlRpcValue ignores the value of _doubleFormat #1958

@peci1

Description

@peci1

https://github.com/ros/ros_comm/search?q=_doubleformat&unscoped_q=_doubleformat
https://github.com/ros/ros_comm/search?q=getdoubleformat&unscoped_q=getdoubleformat

This value has no use at all.

XmlRpc::XmlRpcValue::setDoubleFormat("%.2f");
std::stringstream ss;
ss << XmlRpc::XmlRpcValue(2.0);
EXPECT_EQ("2.00", ss.str());

This fails. The output of ss.str() is "2".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions