Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

Owo Sugiana / opensipkd-hitung

  • This project
    • Loading...
  • Sign in
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
Switch branch/tag
  • opensipkd-hitung
  • opensipkd
  • string
  • money.py
  • Owo Sugiana's avatar
    Penambahan thousand() · 3932282b
    Owo Sugiana committed Jun 13, 2019
    3932282b
money.py 190 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9
import locale


locale.setlocale(locale.LC_ALL, 'id_ID.utf8')


def thousand(n, float_point=0):
    pattern = '%.{:d}f'.format(float_point)
    return locale.format_string(pattern, n, True)