in reply to Re: Re: Dividing and format
in thread Dividing and format

It's probably storing "127" as 126.9999999999999 which rounds down with the int function. Aren't floating point numbers fun?

The documentation for int suggests that the POSIX::floor function is a better selection for this kind of work.