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

Cannot import BigNumber, Fraction, Matrix, Array #546

Closed
josdejong opened this Issue Jan 19, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@josdejong
Owner

josdejong commented Jan 19, 2016

Math.js currently does not allow importing constants being a BigNumber, Fraction, Matrix, or Array.

math.import({foo: math.bignumber(42)})  // error

This is caused by isSupportedType lacking checks for these data types, see code:

https://github.com/josdejong/mathjs/blob/master/lib/core/import.js#L227-L241

@josdejong josdejong added the bug label Jan 19, 2016

@josdejong josdejong changed the title from Cannot import BigNumber, Matrix, Array to Cannot import BigNumber, Fraction, Matrix, Array Jan 19, 2016

@josdejong josdejong closed this Mar 4, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment