I’m trying to figure out the best way (and hopefully leanest) to
conditionally have precision to a float number.
Here’s what I’m doing…
I have a float (which has a default precision of 1) so like 250.0
What I want to do is have the precision go to 0 if the value after
the . is 0 = so 250.0 would show as 250, but 250.5 would show 250.5.