Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matthias Adamczyk
honeypot-status-page
Commits
708037a4
Commit
708037a4
authored
Oct 18, 2016
by
Matthias Adamczyk
Browse files
Runde gemessene Temperatur auf eine Nachkommastelle
parent
09e7adba
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/temp.py
View file @
708037a4
...
...
@@ -21,4 +21,4 @@ def get():
if
equals_pos
!=
-
1
:
temp_string
=
lines
[
1
][
equals_pos
+
2
:]
temp_c
=
float
(
temp_string
)
/
1000.0
return
temp_c
return
"{0:.1f}"
.
format
(
temp_c
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment