Yet the code you posted above as using int64 does not in fact work using int64, it requires arbitrary sized integers as I demonstrated above.
Did you even check your code? Your example above has the (P*R) term overflowing leading to nonsense results.
Man this is funny - you somehow thought you were using int64 in your calcs but you were not :)
Yet the code you posted above as using int64 does not in fact work using int64, it requires arbitrary sized integers as I demonstrated above.
Did you even check your code? Your example above has the (P*R) term overflowing leading to nonsense results.
Man this is funny - you somehow thought you were using int64 in your calcs but you were not :)