Fixed float output format.
This commit is contained in:
1 parent
633badd184
commit
0b9f2354a3
3 files changed
+4
-1
No files matched your search
+2
-1
@@ -1,5 +1,6 @@
|
||||
#include "Operand.h"
|
||||
#include "Exception.h"
|
||||
#include <format>
|
||||
#include <iostream>
|
||||
|
||||
namespace jet {
|
||||
@@ -50,7 +51,7 @@ namespace jet {
|
||||
return;
|
||||
} else if(in.startsWithNumber()) {
|
||||
doubleValue = in.asDouble();
|
||||
string = std::to_string(doubleValue);
|
||||
string = std::format("{}", doubleValue);
|
||||
return;
|
||||
} else if(in.ifNext("'")) {
|
||||
string = in.getTokenExclude("'");
|
||||
|
||||
Reference in new issue
Block a user