On Thu, Jan 02, 2003 at 10:15:01PM +0100, Peter Lundqvist (disjunkt) @ Pike (-) developers forum wrote:
<curios> I have no pike handy at the moment. What is the difference between using a float and an integer? </curios>
string str="123451234512345123";
Result: "123451234512345123"
array fivers = str/5;
Result: ({ /* 3 elements */ "12345", "12345", "12345" })
array fivers = str/5.0;
Result: ({ /* 4 elements */ "12345", "12345", "12345", "123" })
str/5 would be integer division which discards the leftovers.
greetings, martin.