Ver Mensaje Individual
  #4  
Viejo 23/07/10, 10:17:59
Jonathan Barrio Jonathan Barrio is offline
Junior Member
 
Fecha de Ingreso: dic 2008
Mensajes: 25
Nunca me ha tocado trabajar con coma flotante, sin embargo en el código que has pasado no sé si has declarado de la mejor manera las variables.

Creo que R/3 te hace automaticamente el cast, aunque también puede depender de la release del sistema.

Prueba:

data:
STDR_CAWN type standard table of CAWN,
LV_FLOAT type CAWN-ATFLV,
LV_VALOR(30) type C.



LV_VALOR = 1234 / 1000.

LV_FLOAT = LV_VALOR. "¿ hará R/3 el cast automáticamente ?
clear: LV_FLOAT.
LV_FLOAT = 1234.
LV_FLOAT = 500.
LV_FLOAT = 1305800.
LV_FLOAT = 1305801.
Responder Con Cita