mirror of
https://github.com/izzy2lost/Torch.git
synced 2026-07-06 00:18:35 -07:00
@@ -18,7 +18,7 @@ static int GetPrecision(float f) {
|
||||
return p;
|
||||
}
|
||||
|
||||
static std::ostream& FormatFloat(std::ostream& out, const float x, int w) {
|
||||
static void FormatFloat(std::ostream& out, const float x, int w) {
|
||||
if(x == (int) x) {
|
||||
out << std::dec << std::fixed << std::setprecision(0) << std::setfill(' ') << std::setw(w - 2) << x << ".0f";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user