News for hackers. Stuff that matters.
Re:One does not simply calculate the absolute value by wly_cdgr on Sunday August 22, 2021 @08:46PM (#28271184)
What is this insane person doing when you can just

if (value < 0) return -value; else if (value > 0) return value; else return +0.0

Re:One does not simply calculate the absolute value by aw1621107 on Sunday August 22, 2021 @09:00PM (#28271264)
That drops NaNs, for one.
Re:One does not simply calculate the absolute value by wly_cdgr on Sunday August 22, 2021 @09:42PM (#28271540)
Good point