Fixed float output format.

This commit is contained in:
Brad Arant committed 2024-09-30 08:15:48 -07:00
1 parent 633badd184
commit 0b9f2354a3
3 files changed
+4 -1

No files matched your search

+2 -1
View File
@@ -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("'");