(transplanted from 945974a3965a75eb7301405e484470f6f2d74e5f)
(transplanted from 15c673a1072da72939845e792ec9869aba9773a7)
The goal is to prevent to introduce float errors in Numeric fields. There is a trick for external protocols like XML-RPC and JSON-RPC where the string representation is stored in the Float object and will be used to convert it into Decimal.