Update UrlValidator.php

cast to float but make sure comma separator is a dot.