Skip to content

Commit

Permalink
fix: $repr should display the accurate number of decimals instead of …
Browse files Browse the repository at this point in the history
…always 6-8 decimals
  • Loading branch information
SuperFola committed Mar 8, 2024
1 parent fc802e5 commit 019d36b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/arkreactor/Compiler/AST/Node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

#include <Ark/Exceptions.hpp>

#include <fmt/core.h>

namespace Ark::internal
{
Node::Node(NodeType node_type, const std::string& value) :
Expand Down Expand Up @@ -129,7 +131,7 @@ namespace Ark::internal
break;

case NodeType::Number:
data += std::to_string(number());
data += fmt::format("{}", number());
break;

case NodeType::List:
Expand Down

0 comments on commit 019d36b

Please sign in to comment.