Make sure input is floating-point