Timeline for Find the absolute value of a number without built-in functions
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 17, 2020 at 9:04 | history | edited | CommunityBot |
Commonmark migration
|
|
Dec 2, 2015 at 12:49 | comment | added | moala |
@urogen — unverified: *(long*)&f&=LONG_MAX; where f is a double .
|
|
Feb 24, 2014 at 10:02 | comment | added | ugoren |
Nice one - clears the sign bit. But the question requires numbers between -9E99 and 9E99 - you need double .
|
|
Dec 14, 2013 at 11:19 | history | answered | moala | CC BY-SA 3.0 |