[R] fractional part

Berton Gunter gunter.berton at gene.com
Thu Sep 28 18:41:13 CEST 2006


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.
>



More information about the R-help mailing list