> Next you'll want to replace "13.57831" by "13.58" without > using sprintf().
Trival... $var = "13.57831"; $var =~ s/^([+-]?)(\d*)(?:(?:\.?)(\d{0,2})(\d?))?\d*$/"$1$2\.".(1>length$3?"00":(2>length$3?$3."0":(5>$4?$3:$3+1)))/e; Or how about: $var =~ s'13.57831'13.58'; Jonathan Paton __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com