diff options
Diffstat (limited to 'arm_compute/core/Utils.h')
-rw-r--r-- | arm_compute/core/Utils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arm_compute/core/Utils.h b/arm_compute/core/Utils.h index 1cdfd389db..222f867e2c 100644 --- a/arm_compute/core/Utils.h +++ b/arm_compute/core/Utils.h @@ -1011,6 +1011,12 @@ inline std::string float_to_string_with_full_precision(float val) std::stringstream ss; ss.precision(std::numeric_limits<float>::digits10 + 1); ss << val; + + if(val != static_cast<int>(val)) + { + ss << "f"; + } + return ss.str(); } |