On 02/04/2016 09:49 PM, Mike Horvath wrote:
> On 2/1/2016 10:30 AM, William F Pokorny wrote:
>
> So should I use int or floor? The result is different for numbers below
> zero.
>
> Mike
Good question. If you have negative integers as part of your potential
integer range, use floor().
Aside: In some languages to really get an integer you need int() too as
in : int(floor(...)) because ceil() and floor() in those languages
return floats.
Bill P.
Post a reply to this message
|