MOSTRAR DECIMALES Y COMA DECIMAL EN CAMPO FORMULA
Publicado por Angel (1 intervención) el 23/11/2001 07:49:40
¿Qué debo añadir a esta fómula para formatear la salida del campo del tal manera que me muestre dos decimales y la coma decimal? El campo en la base de datos está en centieuros, es decir, hay que dividirlo por cien para pasarlo a euros.
StringVar total;
NumberVar nTotal;
nTotal := {INFORME_ESPECTACULO.total_contado};
if {INFORME_ESPECTACULO.detalle} = 14 or {INFORME_ESPECTACULO.detalle} = 88 then
total := ""
else
if nTotal = 0 then
total := "0"
else
total := ToText(nTotal,0);
total;
StringVar total;
NumberVar nTotal;
nTotal := {INFORME_ESPECTACULO.total_contado};
if {INFORME_ESPECTACULO.detalle} = 14 or {INFORME_ESPECTACULO.detalle} = 88 then
total := ""
else
if nTotal = 0 then
total := "0"
else
total := ToText(nTotal,0);
total;
Valora esta pregunta


0