Implemented sierpinski triangle problem

This commit is contained in:
didier amyot committed 2023-08-28 10:31:46 -04:00
1 parent a832521bda
commit f0606731d5
5 files changed
+60 -15

No files matched your search

+7 -1
View File
@@ -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)
+ "}";
}
}