@mschaeffler/node-red-logic 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -62,7 +62,7 @@ module.exports = function(RED) {
62
62
  getPayload( function(value)
63
63
  {
64
64
  msg.payload = Number( value );
65
- let status = { fill:"gray", shape:"dot", text:msg.payload };
65
+ let status = { fill:"gray", shape:"dot", text:msg.payload.toPrecision(4) };
66
66
 
67
67
  if( ! isNaN( msg.payload ) )
68
68
  {
package/math_reduce.js CHANGED
@@ -112,7 +112,7 @@ module.exports = function(RED) {
112
112
  {
113
113
  case "mean": msg.payload /= msg.count; break;
114
114
  }
115
- status.text = msg.payload;
115
+ status.text = msg.payload.toPrecision(4);
116
116
  if( node.filter )
117
117
  {
118
118
  if( msg.payload !== node.last )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mschaeffler/node-red-logic",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "nodes for simple operations.",
5
5
  "license": "LGPL-2.1",
6
6
  "homepage": "https://github.com/m-schaeffler/node-red-my-nodes/tree/main/node-red-logic",