Skip to main content
deleted 6 characters in body
Source Link
Joel Coehoorn
  • 418.4k
  • 114
  • 582
  • 820

The main thing is that this isn't just .Net: it's a limitation of the underlying system most every language will use to represent a float in memory. TheThe precision only goes so far.

You can also have some fun with relatively simple numbers, when you take into account that it's not even base ten. 00.1 (1/10th), for example, is a repeating decimal when represented in binary, just as 1/3rd is when represented in decimal.

The main thing is that this isn't just .Net: it's a limitation of the underlying system most every language will use to represent a float in memory. The precision only goes so far.

You can also have some fun with relatively simple numbers, when you take into account that it's not even base ten. 0.1, for example, is a repeating decimal when represented in binary.

The main thing is this isn't just .Net: it's a limitation of the underlying system most every language will use to represent a float in memory. The precision only goes so far.

You can also have some fun with relatively simple numbers, when you take into account that it's not even base ten. 0.1 (1/10th), for example, is a repeating decimal when represented in binary, just as 1/3rd is when represented in decimal.

added 66 characters in body
Source Link
Joel Coehoorn
  • 418.4k
  • 114
  • 582
  • 820

The main thing is that this isn't just .Net: it's a limitation of the underlying system most every language will use to represent a floatunderlying system most every language will use to represent a float in memory. The precision only goes so far.

You can also have some fun with relatively simple numbers, when you take into account that it's not even base ten. 0.1, for example, is a repeating decimal when represented in binary.

The main thing is that this isn't just .Net: it's a limitation of the underlying system most every language will use to represent a float in memory. The precision only goes so far.

You can also have some fun with relatively simple numbers, when you take into account that it's not even base ten. 0.1, for example, is a repeating decimal when represented in binary.

The main thing is that this isn't just .Net: it's a limitation of the underlying system most every language will use to represent a float in memory. The precision only goes so far.

You can also have some fun with relatively simple numbers, when you take into account that it's not even base ten. 0.1, for example, is a repeating decimal when represented in binary.

Source Link
Joel Coehoorn
  • 418.4k
  • 114
  • 582
  • 820

The main thing is that this isn't just .Net: it's a limitation of the underlying system most every language will use to represent a float in memory. The precision only goes so far.

You can also have some fun with relatively simple numbers, when you take into account that it's not even base ten. 0.1, for example, is a repeating decimal when represented in binary.