Commit c6a6c862 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fixup! erp5_web_renderjs_ui: try to get a more precise float value on all platforms

parent dc863abc
Pipeline #13185 failed with stage
in 0 seconds
......@@ -57,7 +57,7 @@
state_dict.append = "%";
}
if (!window.isNaN(state_dict.precision)) {
state_dict.step = 1 / Math.pow(10, state_dict.precision);
state_dict.step = Math.pow(10, -state_dict.precision).toFixed(state_dict.precision);
state_dict.value = state_dict.value.toFixed(state_dict.precision);
}
if (!window.isNaN(state_dict.value)) {
......
......@@ -220,7 +220,7 @@
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>zope</string> </value>
<value> <string>kazuhiko</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
......@@ -234,7 +234,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>988.26496.42040.8686</string> </value>
<value> <string>986.52682.33152.28245</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>1609253214.03</float>
<float>1610995697.98</float>
<string>UTC</string>
</tuple>
</state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment