Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -595,8 +595,9 @@ public class UI implements ApplicationListener, Loadable{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static String formatAmount(long number){
|
public static String formatAmount(long number){
|
||||||
//prevent overflow
|
//prevent things like bars displaying erroneous representations of casted infinities
|
||||||
if(number == Long.MIN_VALUE) number ++;
|
if(number == Long.MAX_VALUE) return "∞";
|
||||||
|
if(number == Long.MIN_VALUE) return "-∞";
|
||||||
|
|
||||||
long mag = Math.abs(number);
|
long mag = Math.abs(number);
|
||||||
String sign = number < 0 ? "-" : "";
|
String sign = number < 0 ? "-" : "";
|
||||||
|
|||||||
Reference in New Issue
Block a user