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

Feature request: Allow to run math.config in math block #295

Open
chenfengyuan opened this issue Jan 9, 2025 · 0 comments
Open

Feature request: Allow to run math.config in math block #295

chenfengyuan opened this issue Jan 9, 2025 · 0 comments

Comments

@chenfengyuan
Copy link

Have you searched existing Github issues to see if someone has already requested this feature?
Yes

Is your feature request related to a problem? Please describe.
I want to use BigNumbers instead of numbers in math.js by default

Describe the solution you'd like
Allow to run math.config, so than I can run

math.config({
  number: 'BigNumber',      // Default type of number:
                            // 'number' (default), 'BigNumber', or 'Fraction'
  precision: 64,            // Number of significant digits for BigNumbers
  relTol: 1e-60,
  absTol: 1e-63
})

// use math
math.evaluate('0.1 + 0.2')  // BigNumber, 0.3

Describe alternatives you've considered
An option config can be passed to math.config.

Additional context
Add any other context or screenshots about the feature request here.

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

1 participant