Hi all, is there a function to get the fractional part of a number? -- Regards, Hans-Peter
?"%%" X%%1 Bert Gunter Genentech Nonclinical Statistics South San Francisco, CA 94404> -----Original Message----- > From: r-help-bounces at stat.math.ethz.ch > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Hans-Peter > Sent: Thursday, September 28, 2006 8:40 AM > To: R Help > Subject: [R] fractional part > > Hi all, > > is there a function to get the fractional part of a number? > > -- > Regards, > Hans-Peter > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >
Note: I should have said for negative values, this may have to be adjusted, depending on how you define "fractional part," as -1.25 %% 1 = .75. -- Bert Gunter> -----Original Message----- > From: r-help-bounces at stat.math.ethz.ch > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Hans-Peter > Sent: Thursday, September 28, 2006 8:40 AM > To: R Help > Subject: [R] fractional part > > Hi all, > > is there a function to get the fractional part of a number? > > -- > Regards, > Hans-Peter > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >