Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
opensipkd-tools
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ac4770c0
authored
Nov 01, 2022
by
Taufik Yulianto
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perbaikan fungsi terbilang
1 parent
7eab0633
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
opensipkd/tools/__init__.py
opensipkd/tools/__init__.py
View file @
ac4770c
...
@@ -964,7 +964,7 @@ def terbilang_(n):
...
@@ -964,7 +964,7 @@ def terbilang_(n):
if
n
>=
1000000000
:
if
n
>=
1000000000
:
hasil
=
terbilang_
(
n
/
1000000000
)
+
[
'milyar'
]
+
terbilang_
(
hasil
=
terbilang_
(
n
/
1000000000
)
+
[
'milyar'
]
+
terbilang_
(
n
%
100000000
)
n
%
100000000
)
elif
n
>
1000000
:
#commit by taufik
elif
n
>
=
1000000
:
#commit by taufik
hasil
=
terbilang_
(
n
/
1000000
)
+
[
'juta'
]
+
terbilang_
(
n
%
1000000
)
hasil
=
terbilang_
(
n
/
1000000
)
+
[
'juta'
]
+
terbilang_
(
n
%
1000000
)
elif
n
>=
2000
:
elif
n
>=
2000
:
hasil
=
terbilang_
(
n
/
1000
)
+
[
'ribu'
]
+
terbilang_
(
n
%
1000
)
hasil
=
terbilang_
(
n
/
1000
)
+
[
'ribu'
]
+
terbilang_
(
n
%
1000
)
...
...
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