I want to change my numpy array floating point resolution so it can only have 2 decimal places. Not to print out the value to the command window but the way the value is actually represented in memory!
Asked
Active
Viewed 235 times
0
-
1https://stackoverflow.com/questions/455612/limiting-floats-to-two-decimal-points – Mick Jan 02 '21 at 02:07
-
1Does this answer your question? [How do you round UP a number in Python?](https://stackoverflow.com/questions/2356501/how-do-you-round-up-a-number-in-python) – Ethan Jan 02 '21 at 02:11
-
Do you want to *calculate* with two digits only, or do you want to *print* only two digits? For example, how would you like to print `x` if `x = 1.004 + 1.004 + 1.004`? As `3.00` or as `3.01`? – zvone Jan 02 '21 at 02:37
-
I want to calculate with two decimal digits only ! – y0ungarmanii Jan 02 '21 at 03:02