Thanks for your bug report. It's a simple fix but it does mean that the value returned for z could be N, N.25, N.5, N.75, or possibly any floating point value at all :-) This has been fixed for the next version.