Fórum AJUDEM UM AMIGO INICIANTE-SEI QUE É FACIL #142909

06/03/2003

0

TENHO UM PROGRAMA PRA LANHAUSE JA FUNCIONANDO, MAS FAÇO O CALCULO TEMPO/VALOR ´MANUELMENTE´ (TENHO UMA ESPECIE DE TABELA DE PREÇOS DENTRO DO CÓDIGO), SEI QUE POSSO USAR O DECODETIME, MAS ME AMARREI PARA ARREDONDAR OS VALORES E COLOCAR NUM LABEL POR EXEMPLO, POR FAVOR AJUDEM-ME. DESDE JA AGRADEÇO....


Anonymous

Anonymous

Responder

Posts

06/03/2003

Anonymous

Cara, explica melhor sua dúvida, não deu pra entender o que vc quer!


Responder

Gostei + 0

06/03/2003

Alphablend

é verdade, naum deu pra entender nada . . .


Responder

Gostei + 0

07/03/2003

Anonymous

DESCUPEM... É SIMPLES COMO DEVO ARREDONDAR VALORES FRACIONADOS COMO POR EXEMPLO 1,02541254 OU 0,0333334.
OBRIGADO PELA ATENÇÃO


Responder

Gostei + 0

07/03/2003

Anonymous

e so usar o trunc

exemplo:

var

S, T: string;
begin
Str(1.4:2:1, T);
S := T + ´ Truncs to ´ + IntToStr(Trunc(1.4)) + #1310;
Str(1.5:2:1, T);
S := S + T + ´ Truncs to ´ + IntToStr(Trunc(1.5)) + 1310;
Str(-1.4:2:1, T);
S := S + T + ´ Truncs to ´ + IntToStr(Trunc(-1.4)) + 1310;
Str(-1.5:2:1, T);
S := S + T + ´ Truncs to ´ + IntToStr(Trunc(-1.5));
MessageDlg(S, mtInformation, [mbOk], 0);


Responder

Gostei + 0

08/03/2003

Anonymous

MUITO ABRIGADO VAGNER PELA DICA- VAI ME AJUDAR BASTANTE...VALEU MESMO CARA :D


Responder

Gostei + 0

09/03/2003

Dor_poa

use o formatFloat(´0.00´, valor)


Responder

Gostei + 0

Utilizamos cookies para fornecer uma melhor experiência para nossos usuários, consulte nossa política de privacidade.

Aceitar