PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 25 → Tipo de campo Decimal ou Real?
Tipo de campo Decimal ou Real?
Iniciado por ANDRE MARTINI / IS2, abr., 29 2016 1:35 PM - 2 respostas
Membro registado
208 mensagems
Popularité : +25 (25 votes)
Publicado em abril, 29 2016 - 1:35 PM
Olá pessoal,

tenho alguns campos no meu projeto referentes a valores, por exemplo, [Valor De Venda], [Valor de Custo], [Valor do Documento], [Valor Saldo], etc.

Minha dúvida é a seguinte, que tipo de dados devo usar para este campo [Decimal (WLanguage numeric)] OU [Real]? Qual a diferente de cada um?

Inicialmente usei o [Decimal (WLanguage numeric)] e defini [Integer part] e o [Decimal part].

--
André Martini
IS2 Automotive http://www.is2.inf.br/is2automotive/index.html
IS2 Construtive http://www.is2.inf.br/is2construtive/index.html
IS2 Store http://www.is2.inf.br/is2store/index.html
IS2 Gerent http://www.is2.inf.br/is2gerent/index.html
Publicado em abril, 30 2016 - 3:50 AM
Porque não utiliza Currency?
http://doc.windev.com/en-US/…

JJM
Membro registado
208 mensagems
Popularité : +25 (25 votes)
Publicado em maio, 02 2016 - 12:55 PM
E qual a diferente em termos de projeto do NUMERIC para o CURRENCY?

Pelo que vi no CURRENCY não tem como definir tamanho nem a quantidade de casas decimais, já no NUMERIC isso é possível.

--
André Martini
IS2 Automotive http://www.is2.inf.br/is2automotive/index.html
IS2 Construtive http://www.is2.inf.br/is2construtive/index.html
IS2 Store http://www.is2.inf.br/is2store/index.html
IS2 Gerent http://www.is2.inf.br/is2gerent/index.html