Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
DrEO
sho
Commits
642cf8d1
Commit
642cf8d1
authored
Dec 16, 2019
by
johann dreo
Browse files
x: use math.floor
parent
f3971faa
Changes
1
Hide whitespace changes
Inline
Side-by-side
sho/num.py
View file @
642cf8d1
...
...
@@ -17,7 +17,7 @@ def to_sensors(sol):
assert
(
len
(
sol
)
>
0
)
sensors
=
[]
for
i
in
range
(
0
,
len
(
sol
),
2
):
sensors
.
append
(
(
int
(
floor
(
sol
[
i
])),
int
(
floor
(
sol
[
i
+
1
]))
)
)
sensors
.
append
(
(
int
(
math
.
floor
(
sol
[
i
])),
int
(
math
.
floor
(
sol
[
i
+
1
]))
)
)
return
sensors
...
...
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