Difference between revisions of "Talk:Function for Time of Day"

Jump to navigation Jump to search
m
You win this time, Cipscis
imported>Daemonjax
m (EDIT: Ok, testing ingame.)
imported>Daemonjax
m (You win this time, Cipscis)
Line 7: Line 7:
True, it's an educated guess.  Floor() functions (and to a certain extent entire Math libraries) are notoriously slow in all languages, because they have to return correctly in all circumstances.  The int cast will work in this case, because:  1) the number of game days passed should never exceed to max value of an integer, and 2) The number of game days passed will always be a positive number.   
True, it's an educated guess.  Floor() functions (and to a certain extent entire Math libraries) are notoriously slow in all languages, because they have to return correctly in all circumstances.  The int cast will work in this case, because:  1) the number of game days passed should never exceed to max value of an integer, and 2) The number of game days passed will always be a positive number.   


EDIT: Ok, testing ingame.
EDIT: There doesn't seem to be any way to really test this ingame.  I get strange and inconsistent results for measuring the passage of small amounts of time, and I think it's because of the game's implementation of floating point numbers.
 
So, I'll change the main page back in light of no evidence to prove my case :D 
 
You win this time, Cipscis!!! <shakes fist in the air> haha


-- [[User:Daemonjax|Daemonjax]]
-- [[User:Daemonjax|Daemonjax]]
Anonymous user

Navigation menu