Maxval() leading to floating overflow?