Cerb
Elite Member
- Aug 26, 2000
 
- 17,484
 
- 33
 
- 86
 
It is calculating the result, in a way that is necessarily lossy, due to using floating point numbers. If you want quality arithmetic for money, don't use Excel. If you use Excel, you should learn about how it works. IEEE 754 likely cannot exactly represent the numbers you are using, so instead, you get a number that is very close. Once you apply arithmetic, rounding can be a source of inaccuracy, as well.Actually that makes my point even more. I have 2 significant digits, what the heck does it think it is doing going out to 10 or 12 digits?![]()
We use Decimal or bignum, in these modern times, with new software. Or, in DBs, integrated currency types, of course. If there was many-digit BCD support in x86, we would probably still use it. As it exists, it is too limited, and offers no meaningful advantages over working directly on bytes.That is why old finance stuff uses BCD so no stupid rounding errors, just really slow operations.![]()
			
				Last edited: 
				
		
	
										
										
											
	
										
									
								
				
		
			