Change scanDouble function so that it does not use LargeInt.