Using cr9.0
I use this formula to convert a number to hh:mm
The problem is that when number is i.e. 65, it displays 65:0 instead of 65:00. It works fine with 65.5 which is displayed 65:30.
Does anyone know how to fix this?
Regards,
Bjorn
I use this formula to convert a number to hh:mm
Code:
NumberVar nbrTime := {@number};
NumberVar nbrHour := Truncate(nbrTime);
NumberVar nbrHold := (nbrTime-nbrHour)*100;
nbrHold := (60*nbrHold)/100;
NumberVar nbrMinute := Truncate(nbrHold);
ToText(nbrHour,0,"") + ":" + ToText(nbrMinute,0,"") + ":"
The problem is that when number is i.e. 65, it displays 65:0 instead of 65:00. It works fine with 65.5 which is displayed 65:30.
Does anyone know how to fix this?
Regards,
Bjorn