Skip to content

Commit

Permalink
ensuring the reaction id gets printed as an int
Browse files Browse the repository at this point in the history
  • Loading branch information
whaeck committed May 6, 2024
1 parent 8af7914 commit 6663da1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/NDItk/multigroup/CrossSection/src/write.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ void write( OutputIterator& iter ) const {
std::ostringstream buffer;

auto x = this->begin();
buffer << " " << x[0] << ' ' << std::setprecision( 15 ) << x[1] << '\n';
buffer << " " << static_cast< int >( std::round( x[0] ) )
<< ' ' << std::setprecision( 15 ) << x[1] << '\n';
x += 2;

auto full = this->numberGroups() / 5;
Expand Down

0 comments on commit 6663da1

Please sign in to comment.