2 ms·Too late to edit now, but the floating point standard actually specifies that this is what abs should do.by im3w1l 5y agoToo late to edit now, but the floating point standard actually specifies that this is what abs should do.