Rounding error on db SUM() #342
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	
	No description provided.
		
		Delete Branch "%!s()"
	 
	Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Status quo
There are rounding errors on SUM() for various float values. These rounding errors are common on float sums and can be easily fixed for our purposes.
Fix
Simply cast the return value of sql's SUM() into a two digit floating point type.
Merged in #343