diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2014-09-30 15:25:36 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2014-09-30 15:25:36 +0400 |
commit | c40faed0d6b22faa4acd22414d7a893ceca781e0 (patch) | |
tree | 6bf08ecd2af005e443e68bc461831ba6f66c2a10 /moses/Util.h | |
parent | 85261aa190ee8e56cc84f79fbd36561a75ace146 (diff) |
separate out class TranslationTask into it's on file
Diffstat (limited to 'moses/Util.h')
-rw-r--r-- | moses/Util.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/moses/Util.h b/moses/Util.h index 24a4e2c28..d4c715ab8 100644 --- a/moses/Util.h +++ b/moses/Util.h @@ -431,7 +431,15 @@ T log_sum (T log_a, T log_b) return ( v ); } - +/** Enforce rounding */ +inline void fix(std::ostream& stream, size_t size) +{ + stream.setf(std::ios::fixed); + stream.precision(size); } + + +} // namespace + #endif |