Correct formatting of numbers in output

This commit is contained in:
Andrew Cooper
2022-04-16 17:24:32 +10:00
parent 5fbf0dc37f
commit 8dd1180d87
7 changed files with 33 additions and 18 deletions

View File

@@ -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);