From fee67ca8a0760315047a52fc4101a8f4f80b7a7f Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期一, 11 十一月 2024 15:02:54 +0800
Subject: [PATCH] 1

---
 src/main/java/com/moon/server/entity/data/PointEntity.java |   14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/src/main/java/com/moon/server/entity/data/PointEntity.java b/src/main/java/com/moon/server/entity/data/PointEntity.java
index 7e299ac..b885de6 100644
--- a/src/main/java/com/moon/server/entity/data/PointEntity.java
+++ b/src/main/java/com/moon/server/entity/data/PointEntity.java
@@ -1,10 +1,8 @@
 package com.moon.server.entity.data;
 
-/**
- * 鐐瑰疄浣撶被
- * @author WWW
- * @date 2023-11-16
- */
+import com.moon.server.helper.WebHelper;
+
+@SuppressWarnings("ALL")
 public class PointEntity {
     private double x;
 
@@ -16,9 +14,9 @@
     }
 
     public PointEntity(double x, double y, double val) {
-        this.x = x;
-        this.y = y;
-        this.val = val;
+        this.x = WebHelper.round(x, 6);
+        this.y = WebHelper.round(y, 6);
+        this.val = WebHelper.round(val, 2);
     }
 
     public double getX() {

--
Gitblit v1.9.3