Fixed neiloid method to use doubles instead of integers