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

How can I get result of calculations? #21

Open
iosappsdevelopers opened this issue Sep 5, 2020 · 3 comments
Open

How can I get result of calculations? #21

iosappsdevelopers opened this issue Sep 5, 2020 · 3 comments

Comments

@iosappsdevelopers
Copy link

iosappsdevelopers commented Sep 5, 2020

For display formulas can use "MTEditableMathLabel" but how can I get it's result ?
for example if I enter label.mathList.stringValue 5^{2}, how can I get it's output.. Please help me out with suitable sample if possible.
@kostub

@uguess-tamrakar
Copy link

uguess-tamrakar commented Sep 8, 2020

If you are using Swift, you can do -
MTMathListBuilder.mathList(toString: uiView.mathList) where uiView is your MTEditableMathLabel.

Have you been able to prefill the editor with a math formula? I want to have a placeholder to show a formula example but can't seem to figure out how.
@kostub

@iosappsdevelopers
Copy link
Author

Thanks, @uguess-tamrakar . But using this "MTMathListBuilder.mathList(toString: uiView.mathList)" I am not getting result of calculation.
Do you know how can I get calculation result of this?

@lieudd
Copy link

lieudd commented Mar 19, 2024

Thanks, @uguess-tamrakar . But using this "MTMathListBuilder.mathList(toString: uiView.mathList)" I am not getting result of calculation. Do you know how can I get calculation result of this?

Huh, it seem you can use a AI API like ChatGPT or build math solver your own

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

3 participants