Skip to content

Commit b9cf7f3

Browse files
committed
operator<< for NumericMatrix now ALWAYS shows decimal places.
1 parent 988f17a commit b9cf7f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inst/include/Rcpp/vector/Matrix.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,11 @@ inline std::ostream &operator<<(std::ostream & s, const Matrix<REALSXP, StorageP
226226
typename MATRIX::Row::iterator jend = row.end();
227227

228228
if (j != jend) {
229-
s << std::setw(precision + 1) << (*j);
229+
s << std::showpoint << std::setw(precision + 1) << (*j);
230230
j++;
231231

232232
for ( ; j != jend; j++) {
233-
s << " " << std::setw(precision + 1) << (*j);
233+
s << " " << std::showpoint << std::setw(precision + 1) << (*j);
234234
}
235235
}
236236

0 commit comments

Comments
 (0)