|
|
Hi(gh)!
For generating a time display for my current attempt at a Satisfactory
1.0 speedrun, I use the following code:
#declare hours=div(clock,90000);
#declare minutes=mod(div(clock,1500),60);
#declare seconds=mod(div(clock,25),60);
#declare centiseconds=mod(clock,25)*4;
and the text object is built like:
concat(str(hours,-2,0),":",str(minutes,-2,0),"'",str(seconds,-2,0),",",str(centiseconds,-2,0)),0.001,0
But whenever the clock value is divisible by 25 without remainder, I get
"100" instead of "00" for the centiseconds part of the timestamp. Why?
See you in Khyberspace!
Yadgar
--
VBI BENE, IBI BACTRIA!
Post a reply to this message
|
|