News for hackers. Stuff that matters.
Re:One does not simply calculate the absolute value by literallyaduck on Sunday August 22, 2021 @04:44PM (#28269431)
Just convert to string then replace the "-" char with empty, then you can convert to the type you want. Sure performance suffers, but it gets you home by quitting time. Don't actually do this.
Re:One does not simply calculate the absolute value by Koshkin on Sunday August 22, 2021 @08:12PM (#28270982)
I’ve seen this done. The guy didn’t have time to quit on his own.
Re:One does not simply calculate the absolute value by prof-dr-ir on Sunday August 22, 2021 @04:48PM (#28269467)
"1e-3"
Re:One does not simply calculate the absolute value by toxik on Sunday August 22, 2021 @05:32PM (#28269842)
It’s exp abs, and it’s a beautiful feature.