rob dixon robdixongmxcom itshardtogetonehotmailcom wrote round decimal next nearest whole digit example 0123 1 123 2 47312 5 etc etc right extracting first digit using splice add one need ceil function posix module solutions fail fractional part number zero instance 5000 upgraded 6 presume isnt wanted use strict use warnings use posix foreach qw0123 123 47312 5000 print ceil_ output 1 2 5 5 unsubscribe email beginnersunsubscribeperlorg additional commands email beginnershelpperlorg httplearnperlorg wed 06 aug 2008 122845 0100 round decimal next whole number