From 5c5461b7c46aff66d24efe80062c235342e77d4c Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期三, 16 十二月 2020 09:07:53 +0800 Subject: [PATCH] Merge branch 'CJL' into NewFilePath --- HDL_ON/Entity/Function/FloorHeating.cs | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/HDL_ON/Entity/Function/FloorHeating.cs b/HDL_ON/Entity/Function/FloorHeating.cs index 6c02ad6..18161bb 100644 --- a/HDL_ON/Entity/Function/FloorHeating.cs +++ b/HDL_ON/Entity/Function/FloorHeating.cs @@ -186,6 +186,11 @@ _trait_IndoorTemp.curValue = 0; } } + if (_trait_IndoorTemp.curValue.ToString().Length > 3) + { + var vv = Convert.ToDouble(_trait_IndoorTemp.curValue); + _trait_IndoorTemp.curValue = Convert.ToInt32(vv); + } return _trait_IndoorTemp; } } @@ -219,6 +224,11 @@ if(_trait_temp.curValue.ToString() == "{}") _trait_temp.curValue = 16; } + if (_trait_temp.curValue.ToString().Length > 3) + { + var vv = Convert.ToDouble(_trait_temp.curValue); + _trait_temp.curValue = Convert.ToInt32(vv); + } return _trait_temp; } } -- Gitblit v1.8.0