#! /bin/bash
# (c) 2005 Sune Vuorela <pusling@pusling.com>
# Version 0.9
#
# ----------------------------------------------------------------------------
# "THE BEER-WARE LICENSE" (Revision 42):
# <pusling@pusling.com> wrote this file. As long as you retain this notice you
# can do whatever you want with this stuff. If we meet some day, and you
# think this stuff is worth it, you can buy me a beer in return.
#   Sune Vuorela
# ----------------------------------------------------------------------------
#
# Original beerware license is due to Poul-Henning Kamp.

if [ -z $1 ]
then
	echo "Something wrong"
	exit
fi

REST=${1#*.}
if [ ${REST:0:1} -ge 5 ]
then
	echo $((${1%.*}+1))
else
	echo ${1%.*}
fi


