|  |  | @@ -6,7 +6,7 @@ function numberTextSmall(val, places = 1, smallPlaces = 0) { | 
		
	
		
			
			|  |  |  | if (isNaN(val)) { | 
		
	
		
			
			|  |  |  | throw new RangeError("Invalid number: " + val); | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | if (val < Math.pow(10, (places+2))) { | 
		
	
		
			
			|  |  |  | if (val < Math.pow(10, (places+3))) { | 
		
	
		
			
			|  |  |  | return round(val, smallPlaces); | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | 
 | 
		
	
	
		
			
				|  |  | @@ -26,7 +26,7 @@ function numberText(val, places = 1, smallPlaces = 0) { | 
		
	
		
			
			|  |  |  | if (isNaN(val)) { | 
		
	
		
			
			|  |  |  | throw new RangeError("Invalid number: " + val); | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | if (val < Math.pow(10, (places+2))) { | 
		
	
		
			
			|  |  |  | if (val < Math.pow(10, (places+3))) { | 
		
	
		
			
			|  |  |  | return round(val, smallPlaces); | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | 
 | 
		
	
	
		
			
				|  |  | 
 |