Fixed float output format.

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

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("'");

BIN
jet-2.0

Binary file not shown.

View File

@ -4,12 +4,14 @@
<comment>This is a comment and should not show up in the output.</comment>
<html>
$[nonexistant]
<comment>
<mysql host="localhost" database="barant" user="barant" password="uversa" sessionid="1">
<sql sessionid="1">select * from testdata</sql>
<whilerow name="index" count="10" sessionid="1">
$[1.id] $[1.text] $[1.value]
</whilerow>
</mysql>
</comment>
<set name="ix" value="1" />
<set name="theexpr" expr="SUBSTRING('abcdefg', 1, 3)" />
<set name="theexpr2" expr="5+3" />