Avoided using the C library for a couple of function calls in NormalisableRange.