kalua: math: percentof() fix for very small values