Tema: Ayuda Locate
Ver Mensaje Individual
  #5  
Antiguo 28-11-2022
Avatar de movorack
[movorack] movorack is offline
Miguel A. Valero
 
Registrado: feb 2007
Ubicación: Bogotá - Colombia
Posts: 1.346
Reputación: 20
movorack Va camino a la famamovorack Va camino a la fama
Cita:
Empezado por steelha Ver Mensaje
y los campos son valores enteros.
Cita:
Empezado por steelha Ver Mensaje
..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
__________________
Buena caza y buen remar... http://mivaler.blogspot.com
Responder Con Cita