Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Invalid number format #4

Closed
smeston opened this issue Mar 4, 2024 · 2 comments
Closed

Error: Invalid number format #4

smeston opened this issue Mar 4, 2024 · 2 comments

Comments

@smeston
Copy link

smeston commented Mar 4, 2024

from eval_expr import*
from math import *
from eval_expr import eval_expr
eval_expr("sqrt(90)", True)

Gives error:

"C:\Users\sanje\AppData\Roaming\Texas Instruments\TI-Nspire CX CAS Premium Teacher Software\PyExtract\eval_expr.py", line 38, in  eval_expr
TypeError: Invalid number format
@adriweb
Copy link
Member

adriweb commented Mar 4, 2024

Sorry I can't reproduce the problem, it works fine for me (on both the TI-Nspire CX CAS Premium Teacher Software 5.4 and 6.0):

CleanShot 2024-03-04 at 11 14 27@2x

@adriweb
Copy link
Member

adriweb commented Mar 5, 2024

Ah yeah so it's probably the same as #1 where it might not work if imported from another document... It might be a TI bug I'm not sure.
You could always copy/paste the eval_expr function into your own code as a workaround,

@adriweb adriweb closed this as not planned Won't fix, can't repro, duplicate, stale Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants