Fixed float output format.
This commit is contained in:
parent
633badd184
commit
0b9f2354a3
@ -1,5 +1,6 @@
|
|||||||
#include "Operand.h"
|
#include "Operand.h"
|
||||||
#include "Exception.h"
|
#include "Exception.h"
|
||||||
|
#include <format>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
namespace jet {
|
namespace jet {
|
||||||
@ -50,7 +51,7 @@ namespace jet {
|
|||||||
return;
|
return;
|
||||||
} else if(in.startsWithNumber()) {
|
} else if(in.startsWithNumber()) {
|
||||||
doubleValue = in.asDouble();
|
doubleValue = in.asDouble();
|
||||||
string = std::to_string(doubleValue);
|
string = std::format("{}", doubleValue);
|
||||||
return;
|
return;
|
||||||
} else if(in.ifNext("'")) {
|
} else if(in.ifNext("'")) {
|
||||||
string = in.getTokenExclude("'");
|
string = in.getTokenExclude("'");
|
||||||
|
@ -4,12 +4,14 @@
|
|||||||
<comment>This is a comment and should not show up in the output.</comment>
|
<comment>This is a comment and should not show up in the output.</comment>
|
||||||
<html>
|
<html>
|
||||||
$[nonexistant]
|
$[nonexistant]
|
||||||
|
<comment>
|
||||||
<mysql host="localhost" database="barant" user="barant" password="uversa" sessionid="1">
|
<mysql host="localhost" database="barant" user="barant" password="uversa" sessionid="1">
|
||||||
<sql sessionid="1">select * from testdata</sql>
|
<sql sessionid="1">select * from testdata</sql>
|
||||||
<whilerow name="index" count="10" sessionid="1">
|
<whilerow name="index" count="10" sessionid="1">
|
||||||
$[1.id] $[1.text] $[1.value]
|
$[1.id] $[1.text] $[1.value]
|
||||||
</whilerow>
|
</whilerow>
|
||||||
</mysql>
|
</mysql>
|
||||||
|
</comment>
|
||||||
<set name="ix" value="1" />
|
<set name="ix" value="1" />
|
||||||
<set name="theexpr" expr="SUBSTRING('abcdefg', 1, 3)" />
|
<set name="theexpr" expr="SUBSTRING('abcdefg', 1, 3)" />
|
||||||
<set name="theexpr2" expr="5+3" />
|
<set name="theexpr2" expr="5+3" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user