All Questions
Tagged with fixed-point python
4 questions
7
votes
2
answers
339
views
Method for formatting a decimal number in Python using the given maximum number of digits and decimal places
The question itself should be fairly self-explanatory. My method takes in value, max_digits, and ...
4
votes
3
answers
532
views
Formatting the opposite of some numbers, with decimal alignment
Background
I have a list of strings containing numbers. Each string is 8 characters long. For example :
...
3
votes
1
answer
862
views
Indian numbering system formatting
The following code converts a number into Indian numbering system format.
I know locale can also help in getting similar format but I wanted something that can work on any system because not all ...
3
votes
2
answers
7k
views
Counting significant figures in a number
I decided to make something to count the significant figures in a number to see how easily it could be done, but I think there may have been a better or simpler way. Any advice even just for ...