Implemented sierpinski triangle problem
This commit is contained in:
1 parent
a832521bda
commit
f0606731d5
5 files changed
+60
-15
No files matched your search
+7
-1
@@ -1,5 +1,7 @@
|
||||
namespace Algorithms;
|
||||
using System;
|
||||
using System.Globalization;
|
||||
|
||||
public class Point
|
||||
{
|
||||
private double x;
|
||||
@@ -41,7 +43,11 @@ public class Point
|
||||
}
|
||||
|
||||
public override string ToString(){
|
||||
return "{\"x\": " + this.x + ", \"y\": " + this.y + "}";
|
||||
return "{\"x\": "
|
||||
+ this.x.ToString(CultureInfo.InvariantCulture)
|
||||
+ ", \"y\": "
|
||||
+ this.y.ToString(CultureInfo.InvariantCulture)
|
||||
+ "}";
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user