Drupal has several types of numeric fields:
- integer
- float
- decimal
I know, that decimal field is used to store numeric data with high accuracy. But when it may be necessary in real project? Are there any good examples?
Here's a link to an explanation of Drupal's different number types (integer vs. decimal vs. float) with some examples. Basically, it breaks down as follows:
Also of note is the underlying data structures of integer/decimal/float that gets stored in the database. See Fixed point vs. Floating point for some discussion on the differences.