Skip to content

Fixed notation instead of scientific #31

Open
@GoogleCodeExporter

Description

@GoogleCodeExporter
When double/float values are written to the .ifc as scientific notation seems 
to upset a few IFC viewer. For instance, DDS-CAD viewer will throw an error and 
does not show anything. 

Could we please kindly use Fixed notation instead? 

Thanks :)

void IfcPPWriterSTEP::writeModelToStream( std::stringstream& stream, 
shared_ptr<IfcPPModel> model )
{
.
.
.

    stream << std::setprecision( 15 );
    stream << std::setiosflags( std::ios::showpoint );

       stream <<  std::fixed;            // Could we add this?
.
.
.

}



Original issue reported on code.google.com by [email protected] on 7 Jan 2015 at 3:54

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions