How can I convert a string to a number in Perl? January 13, 2023 by Tarik You don’t need to convert it at all: % perl -e 'print "5.45" + 0.1;' 5.55