private static string ReadIntegerPart(InputReader input) { var token = ""; token += input.TakeIf('-', '+'); token += input.TakeWhile(char.IsDigit); return(token); }
private static string ReadFractionalPart(InputReader input) { var token = ""; if (input.NextIs('.')) { token += input.TakeIf('.'); token += input.TakeWhile(char.IsDigit); } return(token); }