[Impl] 修改Double类型Object格式化输出 std::format 代替 std::to_string.

This commit is contained in:
2025-12-22 23:38:20 +08:00
parent 8f4fb69653
commit 50a4705551
2 changed files with 3 additions and 16 deletions

View File

@@ -1,16 +1,3 @@
struct Person
{
name: String;
age: Int;
}
var x := 3.141;
var person := Person{"Fig", 1};
const print := __fstdout_println;
print(person.name, " ", person.age);
person.name = "hello";
person.age = 114514;
print(person.name, " ", person.age);
__fstdout_println(x);