I solved this recently using str(int(var))
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Text stim presenting digits with unwanted decimals | 5 | 2208 | September 30, 2024 | |
| Unable to convert an object to its numerical form when running the study online (Pavlovia) | 1 | 578 | June 10, 2021 | |
| Putting normal number words/numbers and non-symbolic numerical stimuli (generated from a Python file) together in one excel column in my conditions excel sheet | 3 | 637 | September 2, 2020 | |
| Error: when converting an object to its numerical form; unable to convert null to a number | 4 | 150 | March 23, 2025 | |
| Assigning a TextStim to a new variable then accessing the text attribute | 0 | 678 | August 14, 2020 |