SymbiFlow / uxsdcxx

generate C++ reader/writer from XSD schema
Apache License 2.0
6 stars 2 forks source link

Increase ostream write precision. #47

Closed litghost closed 4 years ago

duck2 commented 4 years ago

I think this is better fixed in VPR side, namely in rr_graph_writer.cpp:

    std::fstream fp;
    fp.open(file_name, std::fstream::out | std::fstream::trunc);
+   fp.precision(std::numeric_limits<float>::max_digits10);
    if (vtr::check_file_name_extension(file_name, ".xml")) {
        void* context;
        uxsd::write_rr_graph_xml(reader, context, fp);
litghost commented 4 years ago

I think this is better fixed in VPR side, namely in rr_graph_writer.cpp:

    std::fstream fp;
    fp.open(file_name, std::fstream::out | std::fstream::trunc);
+   fp.precision(std::numeric_limits<float>::max_digits10);
    if (vtr::check_file_name_extension(file_name, ".xml")) {
        void* context;
        uxsd::write_rr_graph_xml(reader, context, fp);

I'll try that.