3 ms·
As it is, it's correct for positive numbers. In some languages (int) (x+0.5) is one of the simplest ways to do it, really. It just reminds me of the same sort o
by Kim_Bruning 3y ago
As it is, it's correct for positive numbers. In some languages (int) (x+0.5) is one of the simplest ways to do it, really. It just reminds me of the same sort of thinking. Might just be me though.