Cita:
Empezado por steelha
y los campos son valores enteros.
|
Cita:
Empezado por steelha
..me paso 5,84 el cual ya existe en la db
|
Al fin! Son enteros o flotantes?
Si son flotantes, te comento:
Con Delphi muchas veces, he tenido problemas al manejarlos. Trato de no usarlos como llave o identificador de nada a menos que sea estrictamente necesario. Y mas cuando se almacenan en una DB. Ya que el valor decimal que calcula Delphi no es el mismo que obtienes del motor. Aunque en apariencia se vean igual.
Cita:
Empezado por Embarcadero
"What you see is not what you get"
Floating-point numbers written in the source code with decimal digits and floating-point numbers displayed on screen probably differ from what resides in memory. Do not assume that what you see on the console represents exactly what is in memory. Decimal to binary conversion (and back) cannot be done perfectly in every case.
Use integral, BCD, or Currency variables to avoid the IEEE floating-point representation error.
|
Link:
https://docwiki.embarcadero.com/RADS...int_Arithmetic