Converting decimal to integer

The shell mentioned below will show a warning if the page takes more than 6 seconds to load.
The problem is that myduration variable is not an integer. How do I convert it to integer?

    myduration=$(curl http://192.168.50.1/mantisbt/view.php?id=1 -w %{time_total}) > /dev/null ; [[ $myduration -gt 1 ]] && echo "`date +'%y%m%d%H%M%S'` took more than 6 seconds to load the page http://192.168.50.1/mantisbt/view.php?id=1 " >> /home/shantanu/speed_report.txt

You can use bc if your distro supports. And take a look at related posts in this forum.
Hope that helps.

If you want to round the value to an integer:

var=12.77; printf "%2.0f" $var
13

truncate the number

echo $var | sed 's/\.[0-9]*$//'
12

There's no need for another external command. Use shell parameter expansion:

[ ${myduration%%.*} -gt 1 ] && echo "whatever"