Category "digits"

How could I call hundreds in python?

When I split certain numbers into "ones" and "tens" in python, like that (98) we code >>> num = 98 ones = num % 10 tens = num // 10 print(ones) = 8

Importing XML files into excel with numbers of over 15 digits

I have an xml file which I am trying to import into excel but the most important column being imported has 18 digits and excel only allows up to 15 digits. I

Counting number of digits of input using python

I am trying to count the number of digits of an input. However, whenever I input 10 or 11 or any two digit number, the output is 325. Why doesn't it work? inpu

How to print decimal notation rather than scientific notation in Python?

Assume to have this number: p=0.00001 Now, if we print this variable we get 1e-05 (i.e., that number in scientific notation). How can I print exactly 0.00001

Given a number, find the next higher number which has the exact same set of digits as the original number

I just bombed an interview and made pretty much zero progress on my interview question. Given a number, find the next higher number which has the exact same se

Set the digits after decimal point

I have a float number for example 12.12123 Is there a function which would display only number with 2 digits after decimal point 12.12 ? Here is the code: y1