1

I know about glm::to_string but I cannot find away to set precision of the string conversion. A few issues come up because of this. If I want to serialize glm structures, I won't be able to store the full value in text. More recently I ran into an issue where I had a bug with a value being on the order of -10^-18, but glm insisted on showing it as -0.000 requiring me to manually print out the individual values or create my own printing function to actually see the true value (and I'd really like not to have to do that).

Does glm provide the means to set glm::vecN to std::string output precision or use std::setprecision?

Note: the answers on this question do not present a way to set the precision of glm::vecN using glm built in facilities.

Krupip
  • 4,404
  • 2
  • 32
  • 54

0 Answers0