You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Merge pull request #47502 from KoBeWi/add_0
Always add decimal when converting float to string
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
GDTEST_OK
|
||||
{ 1: (2, 0) }
|
||||
{ 3: (4, 0) }
|
||||
[[(5, 0)]]
|
||||
[[(6, 0)]]
|
||||
[[(7, 0)]]
|
||||
[X: (8, 9, 7), Y: (0, 1, 0), Z: (0, 0, 1), O: (0, 0, 0)]
|
||||
{ 1: (2.0, 0.0) }
|
||||
{ 3: (4.0, 0.0) }
|
||||
[[(5.0, 0.0)]]
|
||||
[[(6.0, 0.0)]]
|
||||
[[(7.0, 0.0)]]
|
||||
[X: (8.0, 9.0, 7.0), Y: (0.0, 1.0, 0.0), Z: (0.0, 0.0, 1.0), O: (0.0, 0.0, 0.0)]
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
GDTEST_OK
|
||||
x is 1
|
||||
x is 1.0
|
||||
typeof x is 3
|
||||
x is 2
|
||||
x is 2.0
|
||||
typeof x is 3
|
||||
x is 3
|
||||
x is 3.0
|
||||
typeof x is 3
|
||||
ok
|
||||
|
||||
@@ -11,7 +11,7 @@ a
|
||||
1
|
||||
b
|
||||
1
|
||||
(1, 1)
|
||||
(0, 0)
|
||||
(6, 1)
|
||||
(0, 0)
|
||||
(1.0, 1.0)
|
||||
(0.0, 0.0)
|
||||
(6.0, 1.0)
|
||||
(0.0, 0.0)
|
||||
|
||||
@@ -1,26 +1,26 @@
|
||||
GDTEST_OK
|
||||
===
|
||||
prop1 setter (0, 0)
|
||||
prop1 setter (1, 0)
|
||||
prop1 setter (0.0, 0.0)
|
||||
prop1 setter (1.0, 0.0)
|
||||
---
|
||||
prop1 setter <Inner>
|
||||
subprop getter
|
||||
subprop setter (1, 0)
|
||||
subprop setter (1.0, 0.0)
|
||||
===
|
||||
prop2 setter <Inner>
|
||||
subprop getter
|
||||
subprop setter (1, 0)
|
||||
subprop setter (1.0, 0.0)
|
||||
===
|
||||
prop3 setter (0, 0)
|
||||
prop3 setter (0.0, 0.0)
|
||||
prop3 getter
|
||||
prop3 setter (1, 0)
|
||||
prop3 setter (1.0, 0.0)
|
||||
---
|
||||
prop3 setter <Inner>
|
||||
prop3 getter
|
||||
subprop getter
|
||||
subprop setter (1, 0)
|
||||
subprop setter (1.0, 0.0)
|
||||
===
|
||||
prop4 setter <Inner>
|
||||
prop4 getter
|
||||
subprop getter
|
||||
subprop setter (1, 0)
|
||||
subprop setter (1.0, 0.0)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
GDTEST_OK
|
||||
setting vec from (0, 0) to (2, 0)
|
||||
setting vec from (0, 0) to (0, 2)
|
||||
vec is (0, 0)
|
||||
setting vec from (0.0, 0.0) to (2.0, 0.0)
|
||||
setting vec from (0.0, 0.0) to (0.0, 2.0)
|
||||
vec is (0.0, 0.0)
|
||||
|
||||
@@ -9,13 +9,13 @@ hello world
|
||||
[P: (0, 0), S: (0, 0)]
|
||||
(0.25, 0.25, 0.25)
|
||||
(0, 0, 0)
|
||||
[X: (1, 0), Y: (0, 1), O: (0, 0)]
|
||||
[N: (1, 2, 3), D: 4]
|
||||
(1, 2, 3, 4)
|
||||
[P: (0, 0, 0), S: (1, 1, 1)]
|
||||
[X: (1, 0, 0), Y: (0, 1, 0), Z: (0, 0, 1)]
|
||||
[X: (1, 0, 0), Y: (0, 1, 0), Z: (0, 0, 1), O: (0, 0, 0)]
|
||||
[X: (1.0, 0.0), Y: (0.0, 1.0), O: (0.0, 0.0)]
|
||||
[N: (1.0, 2.0, 3.0), D: 4]
|
||||
(1, 2, 3, 4)
|
||||
[P: (0.0, 0.0, 0.0), S: (1.0, 1.0, 1.0)]
|
||||
[X: (1.0, 0.0, 0.0), Y: (0.0, 1.0, 0.0), Z: (0.0, 0.0, 1.0)]
|
||||
[X: (1.0, 0.0, 0.0), Y: (0.0, 1.0, 0.0), Z: (0.0, 0.0, 1.0), O: (0.0, 0.0, 0.0)]
|
||||
(1.0, 2.0, 3.0, 4.0)
|
||||
hello
|
||||
hello/world
|
||||
RID(0)
|
||||
@@ -26,10 +26,10 @@ Node::[signal]property_list_changed
|
||||
[255, 0, 1]
|
||||
[-1, 0, 1]
|
||||
[-1, 0, 1]
|
||||
[-1, 0, 1]
|
||||
[-1, 0, 1]
|
||||
[-1.0, 0.0, 1.0]
|
||||
[-1.0, 0.0, 1.0]
|
||||
["hello", "world"]
|
||||
[(1, 1), (0, 0)]
|
||||
[(1, 1, 1), (0, 0, 0)]
|
||||
[(1, 0, 0, 1), (0, 0, 1, 1), (0, 1, 0, 1)]
|
||||
[(1.0, 1.0), (0.0, 0.0)]
|
||||
[(1.0, 1.0, 1.0), (0.0, 0.0, 0.0)]
|
||||
[(1.0, 0.0, 0.0, 1.0), (0.0, 0.0, 1.0, 1.0), (0.0, 1.0, 0.0, 1.0)]
|
||||
[(1, 1, 1, 1), (0, 0, 0, 0)]
|
||||
|
||||
Reference in New Issue
Block a user