1 | Index: docs/ref/models/fields.txt |
---|

2 | =================================================================== |
---|

3 | --- docs/ref/models/fields.txt (revision 14551) |
---|

4 | +++ docs/ref/models/fields.txt (working copy) |
---|

5 | @@ -454,6 +454,9 @@ |
---|

6 | |
---|

7 | The admin represents this as an ``<input type="text">`` (a single-line input). |
---|

8 | |
---|

9 | +.. note:: More information about difference between :class:`FloatField` and |
---|

10 | + :class:`DecimalField` types can be found in `FloatField and DecimalField`_. |
---|

11 | + |
---|

12 | ``EmailField`` |
---|

13 | -------------- |
---|

14 | |
---|

15 | @@ -665,6 +668,21 @@ |
---|

16 | |
---|

17 | The admin represents this as an ``<input type="text">`` (a single-line input). |
---|

18 | |
---|

19 | +FloatField and DecimalField |
---|

20 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|

21 | +:class:`FloatField` type is sometimes mixed up with :class:`DecimalField` type. |
---|

22 | +Although they both represent real numbers, they have different representation |
---|

23 | +systems. Float uses `floating number representation system`_, and decimal |
---|

24 | +(sometimes called *numeric* or *fixed point number*) uses `fixed point number |
---|

25 | +representation system`_. For both field types there is corresponding type in |
---|

26 | +`databases numeric types`_ and `python numeric types`_. |
---|

27 | + |
---|

28 | +.. _floating number representation system: http://en.wikipedia.org/wiki/Floating_point |
---|

29 | +.. _fixed point number representation system: http://en.wikipedia.org/wiki/Fixed-point_arithmetic |
---|

30 | +.. _databases numeric types: http://en.wikipedia.org/wiki/SQL#Numbers |
---|

31 | +.. _python numeric types: http://docs.python.org/library/decimal.html |
---|

32 | + |
---|

33 | + |
---|

34 | ``ImageField`` |
---|

35 | -------------- |
---|

36 | |
---|