changeset 13033:03d14c999d2d

simplify rounding
author wight
date Tue, 17 Aug 2004 10:12:49 +0000
parents 2ba5eb44eabd
children 2233b87bf7d3
files TOOLS/calcbpp.pl
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/TOOLS/calcbpp.pl	Tue Aug 17 01:06:24 2004 +0000
+++ b/TOOLS/calcbpp.pl	Tue Aug 17 10:12:49 2004 +0000
@@ -5,9 +5,7 @@
 sub round {
   my $v = shift;
   
-  return floor($v + 0.5) != floor($v) ?
-    floor($v + 0.5) :
-    floor($v);
+  return floor($v + 0.5);
 }
 
 $raw_aspect = 720/576;