Jump to content


Photo

Converter Decimal em Horas


No replies to this topic

#1 maquiavel

maquiavel
  • Membros
  • 1 posts

Posted 29 October 2008 - 11:35 AM

function decimalHoras(valorDecimal: real): real;
var
a, b, c, d: real;
begin
a := valorDecimal / 60;
b := Int(a);
c := a - b;
d := c * 60;

Result := StrToFloat(FormatFloat('0', a) + ',' + FormatFloat('00', d));
end;

Edited by maquiavel, 29 October 2008 - 11:36 AM.




Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users