Submit
Path:
~
/
/
lib
/
python3
/
dist-packages
/
django
/
utils
/
__pycache__
/
File Content:
numberformat.cpython-310.pyc
o �a# � @ s6 d dl mZ d dlmZ d dlmZ d dd�ZdS ) � )�Decimal)�settings)� mark_safeN� Fc C sL |s |du ot jot j}|p|}|o|dk}t| t�r#|s#|s#t| �S d}t| t�r8dt| ��� v r8t t| ��} t| t �r�|durUt dd� |d� �} t| �| k rUt d�} | �� \} }}t|�t |� dkr�d �| �} | �d�\} }t| ||||||�} d �| |�S d�| �}nt| �}|d dkr�d}|d d� }d|v r�|�d�\}}|dur�|d|� }n|d}}|dur�|d|t |� }|o�|| }|�r zt|�}W n ty� |dg}Y nw |�d�}d}d}|ddd� D ](}|�r||k�r|�r|�d��p|}||ddd� 7 }d}||7 }|d 7 }q�|ddd� }|| | S )aT Get a number (as a number or string), and return it as a string, using formats defined as arguments: * decimal_sep: Decimal separator symbol (for example ".") * decimal_pos: Number of decimal positions * grouping: Number of digits in every group limited by thousand separator. For non-uniform digit grouping, it can be a sequence with the number of digit group sizes following the format used by the Python locale module in locale.localeconv() LC_NUMERIC grouping (e.g. (3, 2, 0)). * thousand_sep: Thousand separator symbol (for example ",") Nr r �ez0.�1�0�� z{:e}z{}e{}z{:f}�-� �.���)r �USE_L10N�USE_THOUSAND_SEPARATOR� isinstance�intr �float�str�lowerr �rjust�abs�as_tuple�len�format�split�list� TypeError�pop)�number�decimal_sep�decimal_pos�grouping�thousand_sep�force_grouping�use_l10n�use_grouping�sign�cutoff�_�digits�exponent�coefficient� str_number�int_part�dec_part� intervals�active_interval�int_part_gd�cnt�digit� r4 �;/usr/lib/python3/dist-packages/django/utils/numberformat.pyr sn �� � r )Nr r FN)�decimalr �django.confr �django.utils.safestringr r r4 r4 r4 r5 �<module> s �
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
__init__.cpython-310.pyc
148 bytes
0644
_os.cpython-310.pyc
1898 bytes
0644
archive.cpython-310.pyc
8444 bytes
0644
asyncio.cpython-310.pyc
1278 bytes
0644
autoreload.cpython-310.pyc
20436 bytes
0644
baseconv.cpython-310.pyc
2481 bytes
0644
cache.cpython-310.pyc
11924 bytes
0644
connection.cpython-310.pyc
3779 bytes
0644
crypto.cpython-310.pyc
2884 bytes
0644
datastructures.cpython-310.pyc
13249 bytes
0644
dateformat.cpython-310.pyc
11201 bytes
0644
dateparse.cpython-310.pyc
4427 bytes
0644
dates.cpython-310.pyc
1305 bytes
0644
datetime_safe.cpython-310.pyc
2834 bytes
0644
deconstruct.cpython-310.pyc
1802 bytes
0644
decorators.cpython-310.pyc
5542 bytes
0644
deprecation.cpython-310.pyc
4862 bytes
0644
duration.cpython-310.pyc
1232 bytes
0644
encoding.cpython-310.pyc
7498 bytes
0644
feedgenerator.cpython-310.pyc
12175 bytes
0644
formats.cpython-310.pyc
6328 bytes
0644
functional.cpython-310.pyc
13916 bytes
0644
hashable.cpython-310.pyc
821 bytes
0644
html.cpython-310.pyc
13715 bytes
0644
http.cpython-310.pyc
14140 bytes
0644
inspect.cpython-310.pyc
3008 bytes
0644
ipv6.cpython-310.pyc
1742 bytes
0644
itercompat.cpython-310.pyc
369 bytes
0644
jslex.cpython-310.pyc
6914 bytes
0644
log.cpython-310.pyc
6908 bytes
0644
lorem_ipsum.cpython-310.pyc
4541 bytes
0644
module_loading.cpython-310.pyc
2597 bytes
0644
numberformat.cpython-310.pyc
2148 bytes
0644
regex_helper.cpython-310.pyc
7580 bytes
0644
safestring.cpython-310.pyc
2483 bytes
0644
termcolors.cpython-310.pyc
5556 bytes
0644
text.cpython-310.pyc
13782 bytes
0644
timesince.cpython-310.pyc
2757 bytes
0644
timezone.cpython-310.pyc
7581 bytes
0644
topological_sort.cpython-310.pyc
1772 bytes
0644
tree.cpython-310.pyc
4332 bytes
0644
version.cpython-310.pyc
3136 bytes
0644
xmlutils.cpython-310.pyc
1472 bytes
0644
N4ST4R_ID | Naxtarrr