Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design1
/
RIT_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
박권수
2021-10-15 21:30:55 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
df0e4a39d71dfed0a5ce08f97fb8cd9e23dc91ae
df0e4a39
1 parent
c72caee1
fix. Integer | float -> float 소수점자리 설정
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
server/src/util/DataProcess.js
server/src/util/DataProcess.js
View file @
df0e4a3
...
...
@@ -47,9 +47,9 @@ const bottleInfoUpdate = async(data) => {
bottleId
=
parseInt
(
bottleId
);
isOpen
=
parseInt
(
isOpen
);
temperature
=
parseFloat
(
temperature
);
humidity
=
parseFloat
(
humidity
);
totalWeight
=
parseFloat
(
totalWeight
);
temperature
=
parseFloat
(
temperature
)
.
toFixed
(
1
)
;
humidity
=
parseFloat
(
humidity
)
.
toFixed
(
1
)
;
totalWeight
=
parseFloat
(
totalWeight
)
.
toFixed
(
2
)
;
const
bottleMedicine
=
await
BottleMedicine
.
findOne
({
bottleId
,
useYn
:
'Y'
});
...
...
Please
register
or
login
to post a comment