This commit is contained in:
yan.y
2024-07-08 14:38:21 +08:00
parent 8729de390f
commit 65ec2c5dde
4 changed files with 60 additions and 43 deletions
+2 -2
View File
@@ -51,6 +51,6 @@ func TestCalc5(t *testing.T) {
fmt.Printf(float)
}
func TestMath(t *testing.T) {
i := int(float64(256) * (85 / 100.0) * 10)
fmt.Println(i)
var a = int(RoundToOneDecimalPlace(float64(150)*(95/100.0)) * 10)
fmt.Println(a)
}