Java: Convert from Number to long
Number n = ... long l = n.longValue()
Note that this simply discards all but the lowest 64 bits. If the
Number is outside of the range −9,223,372,036,854,775,808…9,223,372,036,854,775,807 the conversion my have unexpected results.
Be the first to comment!