mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 15:16:33 -08:00
Correct formatting of numbers in output
This commit is contained in:
@@ -2,7 +2,7 @@ namespace Chief;
|
||||
|
||||
internal static class IReadWriteExtensions
|
||||
{
|
||||
internal static bool ReadYes(this IReadWrite io, string format, float value) =>
|
||||
internal static bool ReadYes(this IReadWrite io, string format, Number value) =>
|
||||
io.ReadYes(string.Format(format, value));
|
||||
internal static bool ReadYes(this IReadWrite io, string prompt) =>
|
||||
io.ReadString(prompt).Equals("Yes", StringComparison.InvariantCultureIgnoreCase);
|
||||
|
||||
Reference in New Issue
Block a user