Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
opensipkd-hitung
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4638ca3d
authored
Jan 31, 2023
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Toleransi round_up() ditingkatkan dari 0.1 menjadi 0.01
1 parent
f58994e1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
CHANGES.txt
opensipkd/hitung.py
CHANGES.txt
View file @
4638ca3
0.2.1 2023-01-31
----------------
- round_up() ditingkatkan toleransi pecahannya dari 0.1 menjadi 0.01
0.2 2022-02-09
----------------
- round_up() disempurnakan yaitu bila pecahan kurang dari 0.1 maka akan
...
...
opensipkd/hitung.py
View file @
4638ca3
...
...
@@ -6,7 +6,7 @@ from datetime import (
def
round_up
(
n
):
i
=
int
(
n
)
plus
=
(
int
(
n
*
10
)
-
int
(
n
)
*
1
0
)
and
1
plus
=
(
int
(
n
*
10
0
)
-
int
(
n
)
*
10
0
)
and
1
if
n
<
0
:
return
i
-
plus
return
i
+
plus
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment