We All Float Down Here…
by in CodeSOD on 2015-06-29When Maarten first saw the utility function below, he couldn’t imagine why converting a number from float
to double
required a string
intermediate. Fortunately, whoever wrote this code followed best practices: their comment not only explained what the code is doing, it also explained why.