no. int(-1.5) returns -1.
from perldoc -f int: "You should not use this function for rounding ... it truncates towards "0" ...." This means that whatever real number is passed to it, it returns without whatever follows the decimal point, int(1.99) returns 1 and int (-1.99) returns -1. /\/\ark -----Original Message----- From: Naveen Parmar [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 17, 2002 2:15 PM To: [EMAIL PROTECTED] Subject: int() Should int(-1.5) return -2? - NP _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]