Advertisement
puchiedarcy

Untitled

Feb 26th, 2016
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. BigDecimal a = 27
  2. BigDecimal b = 365
  3. BigDecimal c = 3.48231
  4.  
  5. println((a/b)*c)
  6.  
  7. Result: 0.257595534108237
  8.  
  9. >
  10.  
  11. float a = 27
  12. float b = 365
  13. float c = 3.48231
  14.  
  15. println((a/b)*c)
  16.  
  17. Result: 0.257595538439816
  18.  
  19. >
  20.  
  21. Double a = 27
  22. Double b = 365
  23. Double c = 3.48231
  24.  
  25. println((a/b)*c)
  26.  
  27. Result: 0.257595534246575331
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement