Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Wow, that was ONLY 112 posts ago!I showed him how to do that back in
// convert word in ms to secs string (ie "D.DDD")
public function format_msec(wval as word) as string(8)
result = DecToStr(wval/1000) + "." + DecToStr((wval MOD 1000), 3)
end function
WriteAt(1,1,"reaction=",format_msec(OldScore), "secs")
You can remove the '+ "secs"' part if you wish, but if you remove the ',3)' then the displayed value will be wrong 99% of the time.I removed the , 3) + "secs" because it didn't look right on the LCD display
If you add the format_msecs function shown then there will be no interaction between anything and all those problems will go away.as for the FUNCTION I contemplated using it but I was having too many issues with the value of MS interacting with CURRENT_SCORE and BEST_SCORE
WriteAt(1,1,"reaction=",format_msec(CURRENT_SCORE), "secs")
WriteAt(1,1,"reaction=",format_msec(BEST_SCORE), "secs")