1 Replies - 700 Views - Last Post: 02 March 2014 - 02:43 AM Rate Topic: -----

#1 andrewsw  Icon User is offline

  • Fire giant boob nipple gun!
  • member icon

Reputation: 3460
  • View blog
  • Posts: 11,727
  • Joined: 12-December 12

[link] Computer Arithmetic - Problems

Posted 01 March 2014 - 03:08 PM

Eric Lippert has a very good and clear article about performing arithmetic in C#, discussing integer division, rounding errors, etc., here:

Math is Hard; Letís Go Shopping!

I like it in particular because it is very clearly explained and the examples are very simple.

The issues discussed also apply to other programming languages, not just C#.

Is This A Good Question/Topic? 2
  • +

Replies To: [link] Computer Arithmetic - Problems

#2 darek9576  Icon User is offline

  • D.I.C Lover

Reputation: 198
  • View blog
  • Posts: 1,689
  • Joined: 13-March 10

Re: [link] Computer Arithmetic - Problems

Posted 02 March 2014 - 02:43 AM

Thanks for sharing. Nice article.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1