We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8097958 commit c4d3544Copy full SHA for c4d3544
1 file changed
lib/transformer/caster/template.rb
@@ -9,6 +9,11 @@ def add_graph_value(graph_method, value)
9
key = graph_method.export_key.to_s
10
export_method = graph_method.export_method
11
12
+ # Round all numeric values to 14 decimals for consistency
13
+ if value.is_a?(Numeric)
14
+ value = value.round(14)
15
+ end
16
+
17
@template.fetch(:graph_values)[key] ||= {}
18
@template.fetch(:graph_values).fetch(key).store(export_method, value)
19
end
0 commit comments