Yes, -Float.MAX_VALUE
is the negative number with largest magnitude. float
s are represented the same way as double
s, just with half the storage space (and the accompanying loss of precision.) Since signs in IEEE 754 are represented by a single bit, flipping that bit doesn’t change the overall magnitude attainable by the remaining bits.