-
-
Notifications
You must be signed in to change notification settings - Fork 475
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Steps to reproduce:
#include "crow/json.h"
#include <gtest/gtest.h>
TEST(CrowJson, SmallNumber)
{
crow::json::wvalue data;
const double smallnumber = 1e-10;
data["testValue"] = smallnumber;
std::string text = data.dump( 4);
std::cout << text << std::endl;
};
The serialized text
variable contains text similar to 1.000000xxxxxe-01
instead of e-10
at the end.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working