3 ms·
The most surprising thing for me out of this is that casting a high positive integer to double will output the nearest double which could be higher, not the hig
by Aardwolf 7y ago
The most surprising thing for me out of this is that casting a high positive integer to double will output the nearest double which could be higher, not the highest one smaller than or equal to the integer value.
Is there a way to get the largest double smaller or equal than some positive integer?