Update scanner.c

update readRealNumber function