|
I wouldn't want to muddy the waters, but....<g> Seems to me that the behavior of integer conversion functions or whatever is implementation dependent--no right or wrong. If I remember correctly, the first version of BASIC I fooled around with at home had INT and TRUNC. INT rounded and TRUNC didn't. ------------------------------------------- A mind is a terrible thing to use. Joel Fritz > -----Original Message----- > From: Laskosky, Matt [mailto:MLaskosk@kmart.com] > Sent: Thursday, March 02, 2000 3:37 AM > To: 'RPG400-L@midrange.com' > Subject: RE: int(-8.9)=-9 or -8 > > > And Perl returns -8, and according to my instructor this is > correct since > the function of %int(-8.9) is to return the integer value of > the number w/o > first rounding the number. > > Who's right? > > __________________________________________________ +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.