Skip to content

Commit

Permalink
Fixing some number formatting from copy
Browse files Browse the repository at this point in the history
  • Loading branch information
mina-asham committed May 10, 2015
1 parent 8590803 commit a3ffc22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions algs4/algs4/BreadthFirstDirectedPaths.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public static void RunMain(string[] args)
{
if (bfs.HasPathTo(v))
{
StdOut.PrintF("%d to %d (%d): ", s, v, bfs.DistTo(v));
StdOut.PrintF("{0} to {1} ({2}): ", s, v, bfs.DistTo(v));
foreach (int x in bfs.PathTo(v))
{
if (x == s)
Expand All @@ -190,7 +190,7 @@ public static void RunMain(string[] args)

else
{
StdOut.PrintF("%d to %d (-): not connected\n", s, v);
StdOut.PrintF("{0} to {1} (-): not connected\n", s, v);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion algs4/algs4/Interval2D.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public static void RunMain(string[] args)
}

StdOut.PrintLn(counter);
StdOut.PrintF("box area = %.2f\n", box.Area());
StdOut.PrintF("box area = {0:0.00}\n", box.Area());
}
}
}

0 comments on commit a3ffc22

Please sign in to comment.