diff --git a/lib/src/coordinate.dart b/lib/src/coordinate.dart index b182e38..57813a7 100644 --- a/lib/src/coordinate.dart +++ b/lib/src/coordinate.dart @@ -1,8 +1,11 @@ class Coordinate { - double x; - double y; + late double x; + late double y; - Coordinate(this.x, this.y); + Coordinate(double x, double y) { + this.x = double.parse(x.toStringAsFixed(5)); + this.y = double.parse(y.toStringAsFixed(5)); + } @override String toString() {