Timeline for python: converting numpy array to fixed float numbers
Current License: CC BY-SA 4.0
Post Revisions
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 22, 2020 at 8:40 | audit | Suggested edits | |||
| Dec 22, 2020 at 8:40 | |||||
| Dec 4, 2020 at 17:10 | vote | accept | Community Bot | ||
| Dec 4, 2020 at 16:40 | comment | added | user14748664 | I could print it directly from function #print("[%.3f, %.3f, %.3f]" % tuple(mean)) BUT I need to save this in a variable returned to the script | |
| Dec 4, 2020 at 16:37 | answer | added | dschurman | timeline score: 2 | |
| Dec 4, 2020 at 16:36 | comment | added | Tarik | 1. Read "what every programmer should know about floating point numbers". 2. Handle this by formatting the numbers upon output, specifying 3 digits and you will get the effect you want. | |
| Dec 4, 2020 at 16:31 | history | asked | user14748664 | CC BY-SA 4.0 |