[Bioperl-l] Problems with Bioperl-ext package on WinVista?
    Hilmar Lapp 
    hlapp at gmx.net
       
    Sun Aug 16 15:07:39 UTC 2009
    
    
  
On Aug 16, 2009, at 1:38 AM, Chris Fields wrote:
> I'm assuming this needs to simply be rounded up to 1.0.  That could  
> be accomplished with something like 'if (sprintf("%.2f", $sum) !=  
> 1.0) {...}'
Couldn't you just test for the absolute difference being smaller than  
some reasonable epsilon? That might be more efficient (and more  
explicit) than printing to a string.
	-hilmar
-- 
===========================================================
: Hilmar Lapp  -:-  Durham, NC  -:-  hlapp at gmx dot net :
===========================================================
    
    
More information about the Bioperl-l
mailing list