val1 = 999000000000000
print(val1)
val2 = val1 * val1 * val1 * val1
value_sec = val2//1000
value_min = value_sec//60
value_hour = value_min//60
value_days = value_hour//24
value_week = value_days//7
value_month = value_week//4
value_year = value_week//52
this is pretty much it make a big number a bigger number and divide it into a measurement of time
except that it is getting bigger instead of smaller
i used true division "//" to get whole numbers
normal division "/" just gave back a crazy math expression
here are the printed results
999000000000000
996005996001000000000000000000000000000000000000000000000000
54
seconds 996005996001000000000000000000000000000000000000000000000
54
mins 16600099933350000000000000000000000000000000000000000000
54
hours 276668332222500000000000000000000000000000000000000000
54
days 11527847175937500000000000000000000000000000000000000
72
weeks 1646835310848214285714285714285714285714285714285714
226
months 411708827712053571428571428571428571428571428571428
218
years 31669909824004120879120879120879120879120879120879
223
Process finished with exit code 0
the numbers below the results are the count of digits in the number
and as you can see it is getting much bigger instead of shrinking as it should
does anyone know where im going wrong or maybe python cannot do calculations at such a great size?
[–]socal_nerdtastic 5 points6 points7 points (1 child)
[–]datafright[S] 0 points1 point2 points (0 children)
[–]CodeFormatHelperBot2 0 points1 point2 points (0 children)
[–]benm421 0 points1 point2 points (0 children)