fix : fixed an issue when a variable with a trailing zero was written as an integer
This commit is contained in:
parent
00b3a9bb5d
commit
431dc6a615
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
build/
|
||||
/tags
|
||||
/bazel-*
|
||||
/cmake-build-debug
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
Start testing: Jan 30 03:31 +05
|
||||
Start testing: Jan 30 03:33 +05
|
||||
----------------------------------------------------------
|
||||
End testing: Jan 30 03:31 +05
|
||||
End testing: Jan 30 03:33 +05
|
||||
|
||||
@ -177,7 +177,9 @@ inline Emitter& Emitter::WriteStreamable(T value) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!special) {
|
||||
if ((float)((int) value ) == value ){
|
||||
stream << std::fixed << std::setprecision(1) << value;
|
||||
}else if (!special) {
|
||||
stream << value;
|
||||
}
|
||||
m_stream << stream.str();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user