Ticket #14403: 14403_decimalFloat.3.diff

File 14403_decimalFloat.3.diff, 1.4 KB (added by dmedvinsky, 13 years ago)

Little fix for patch from trebor74hr

  • docs/ref/models/fields.txt

     
    454454
    455455The admin represents this as an ``<input type="text">`` (a single-line input).
    456456
     457.. note:: Information about difference between :class:`FloatField` and
     458   :class:`DecimalField` types can be found in `FloatField and DecimalField`_.
     459
    457460``EmailField``
    458461--------------
    459462
     
    665668
    666669The admin represents this as an ``<input type="text">`` (a single-line input).
    667670
     671FloatField and DecimalField
     672~~~~~~~~~~~~~~~~~~~~~~~~~~~
     673:class:`FloatField` type is sometimes mixed up with :class:`DecimalField` type.
     674Although they both represent real numbers, they have different representation
     675systems. Float uses `floating point number representation system`_, and decimal
     676(sometimes called *numeric* or *fixed point number*) uses `fixed point number
     677representation system`_. For both field types there is corresponding type in
     678`databases numeric types`_ and `python numeric types`_.
     679
     680.. _floating point number representation system: http://en.wikipedia.org/wiki/Floating_point
     681.. _fixed point number representation system: http://en.wikipedia.org/wiki/Fixed-point_arithmetic
     682.. _databases numeric types: http://en.wikipedia.org/wiki/SQL#Numbers
     683.. _python numeric types: http://docs.python.org/library/decimal.html
     684
     685
    668686``ImageField``
    669687--------------
    670688
Back to Top