A module to represent kharosthi numbers
Project description
Kharosthi numbers
A naive representation of Kharosthi numerals, and a way to do simple arithmetic on them (actually, we're cheating and doing arithmetic on int
versions of the numbers).
Currently only supports numbers less than 10000. The naive conversion algorithm currently can't deal with arbitrarily big numbers, so we only support "𐩇" with a maximum value of 9 in front of it.
Also, 0 and negative integers are not representable in Kharosthi, and not valid numbers.
Requirements
Python >= 3.6
Usage
from kharosthi.numbers import KharosthiNumber as K
sum = K.from_int(5) + K.from_int(50)
# 7 - 4 = 3
int(difference) = K("𐩃𐩂") - K("𐩃")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for kharosthi.numbers-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76808878c0f77b9dae1dde8fd7f7b0558baf0826ce5615d0e85e94aaa502950b |
|
MD5 | 3ad6f35f37277971dc493566619206b4 |
|
BLAKE2b-256 | 01590baa7e8d7df7e450e66be08e646a6512329cd18951dbd42c5cbc27ab378d |