Fixed float output format.
This commit is contained in:
parent
633badd184
commit
0b9f2354a3
@ -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("'");
|
||||
|
@ -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" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user